feat: Working on documentation

This commit is contained in:
2024-12-06 11:06:10 -05:00
parent 9985b55f88
commit f0873d3b44
16 changed files with 326 additions and 58 deletions

View File

@@ -58,10 +58,10 @@ struct CliDocTests {
\("Examples:".applyingStyle(.bold).applyingColor(.yellow)) \("Some common usage examples.".italic)
\("First".red)
$ \("ls -lah".italic)
> \("ls -lah".italic)
\("Second".red)
$ \("find . -name foo".italic)
> \("find . -name foo".italic)
"""
let result = printIfNotEqual(
examples.exampleStyle(CustomExampleOnlyStyle()).render(),
@@ -99,7 +99,7 @@ struct CustomExampleOnlyStyle: ExampleStyle {
content.examples.map { example in
VStack {
example.label.red
ShellCommand { example.example }
ShellCommand(symbol: ">") { example.example }
}
}
}