feat: Working on documentation
All checks were successful
CI / Run tests. (push) Successful in 58s

This commit is contained in:
2024-12-09 09:35:17 -05:00
parent 78a632c3e5
commit 875b1980e0
9 changed files with 100 additions and 8 deletions

View File

@@ -9,7 +9,8 @@ struct Application: ParsableCommand {
subcommands: [
SectionCommand.self,
VStackCommand.self,
HStackCommand.self
HStackCommand.self,
GroupCommand.self
]
)
}

View File

@@ -0,0 +1,21 @@
import ArgumentParser
import CliDocCore
struct GroupCommand: ParsableCommand {
static let configuration = CommandConfiguration(commandName: "group")
func run() throws {
let group = Group {
"My headline."
"\n"
"Some content".color(.green)
"\n"
"Foo Bar".italic()
}
.color(.blue)
print()
print("\(group.render())")
}
}