feat: Adds generate-config as json file.
This commit is contained in:
@@ -22,6 +22,7 @@ struct BasicGlobalOptions: ParsableArguments {
|
||||
|
||||
}
|
||||
|
||||
@dynamicMemberLookup
|
||||
struct GlobalOptions: ParsableArguments {
|
||||
|
||||
@Option(
|
||||
@@ -44,4 +45,9 @@ struct GlobalOptions: ParsableArguments {
|
||||
|
||||
@OptionGroup var basic: BasicGlobalOptions
|
||||
|
||||
subscript<T>(dynamicMember keyPath: WritableKeyPath<BasicGlobalOptions, T>) -> T {
|
||||
get { basic[keyPath: keyPath] }
|
||||
set { basic[keyPath: keyPath] = newValue }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user