feat: Adds more documentation and examples.
All checks were successful
CI / Run tests. (push) Successful in 52s
All checks were successful
CI / Run tests. (push) Successful in 52s
This commit is contained in:
21
Examples/Sources/CliDoc-Examples/VStackCommand.swift
Normal file
21
Examples/Sources/CliDoc-Examples/VStackCommand.swift
Normal file
@@ -0,0 +1,21 @@
|
||||
import ArgumentParser
|
||||
import CliDocCore
|
||||
|
||||
struct VStackCommand: ParsableCommand {
|
||||
static let configuration = CommandConfiguration(commandName: "vstack")
|
||||
|
||||
func run() throws {
|
||||
let vstack = VStack {
|
||||
"Blob Esquire"
|
||||
.color(.yellow)
|
||||
.bold()
|
||||
.underline()
|
||||
|
||||
"Blob is a super awesome worker.".italic()
|
||||
}
|
||||
|
||||
print()
|
||||
print(vstack.render())
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user