feat: Adds generate-config as json file.

This commit is contained in:
2024-11-29 22:25:50 -05:00
parent 505f7d8013
commit ed3f752694
6 changed files with 97 additions and 36 deletions

View File

@@ -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 }
}
}