Files
swift-cli-doc/Sources/CliDoc/Nodes/ShellCommand.swift
2024-12-02 17:04:28 -05:00

21 lines
354 B
Swift

public struct ShellCommand<Content: Node>: Node {
public var symbol: String
public var content: Content
public init(
symbol: String = "$",
@NodeBuilder content: () -> Content
) {
self.symbol = symbol
self.content = content()
}
public var body: some Node {
Group(separator: " ") {
symbol
content
}
}
}