feat: Moves logging extensions into it's own module, moves configuration merging into config-client, fixes merging bug.
This commit is contained in:
@@ -105,6 +105,7 @@ extension ConfigCommand {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Add verbose.
|
||||
@dynamicMemberLookup
|
||||
struct ConfigCommandOptions: ParsableArguments {
|
||||
|
||||
@@ -133,7 +134,7 @@ extension ConfigCommand {
|
||||
private extension ConfigCommand.ConfigCommandOptions {
|
||||
|
||||
func shared(command: String) throws -> CliClient.SharedOptions {
|
||||
try configOptions.shared(command: command, extraOptions: extraOptions)
|
||||
try configOptions.shared(command: command, extraOptions: extraOptions, verbose: 2)
|
||||
}
|
||||
|
||||
func handlePrintJson(_ configuration: Configuration) throws {
|
||||
|
||||
@@ -167,6 +167,7 @@ extension ConfigurationOptions {
|
||||
)
|
||||
}
|
||||
|
||||
// TODO: Need to potentially do something different with passing branch.
|
||||
func shared(
|
||||
command: String,
|
||||
dryRun: Bool = true,
|
||||
@@ -180,7 +181,7 @@ extension ConfigurationOptions {
|
||||
gitDirectory: gitDirectory,
|
||||
loggingOptions: .init(command: command, verbose: verbose),
|
||||
target: target(),
|
||||
branch: .init(includeCommitSha: commitSha),
|
||||
branch: semvarOptions.gitTag ? nil : .init(includeCommitSha: commitSha),
|
||||
semvar: semvarOptions(extraOptions: extraOptions),
|
||||
configurationFile: configurationFile
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user