feat: More styles, renames some items.
This commit is contained in:
@@ -17,9 +17,16 @@ public struct ShellCommand<Content: TextNode>: TextNode {
|
||||
|
||||
@inlinable
|
||||
public var body: some TextNode {
|
||||
HStack {
|
||||
symbol
|
||||
content
|
||||
}
|
||||
style(.default)
|
||||
}
|
||||
}
|
||||
|
||||
public extension ShellCommand where Content == String {
|
||||
@inlinable
|
||||
init(
|
||||
_ content: String,
|
||||
symbol: any TextNode = "$"
|
||||
) {
|
||||
self.init(symbol: symbol) { content }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user