import ArgumentParser import CliDoc import ConfigurationClient import CustomDump import Dependencies struct DumpConfigCommand: AsyncParsableCommand { static let commandName = "dump-config" static let configuration = CommandConfiguration( commandName: commandName, abstract: createAbstract("Show the current configuration."), usage: .default(commandName: commandName, parentCommand: "utils", usesArguments: false, usesExtraArguments: false), discussion: Discussion { "Useful to debug your configuration settings / make sure they load properly." } ) func run() async throws { @Dependency(\.configurationClient) var configurationClient let configuration = try await configurationClient.findAndLoad() customDump(configuration) } }