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:
16
Examples/Sources/CliDoc-Examples/HStackCommand.swift
Normal file
16
Examples/Sources/CliDoc-Examples/HStackCommand.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
import ArgumentParser
|
||||
import CliDocCore
|
||||
|
||||
struct HStackCommand: ParsableCommand {
|
||||
static let configuration = CommandConfiguration(commandName: "hstack")
|
||||
|
||||
func run() throws {
|
||||
let note = HStack {
|
||||
"NOTE:".color(.cyan).bold()
|
||||
"This is my super cool note.".italic()
|
||||
}
|
||||
|
||||
print()
|
||||
print(note.render())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user