A basic Swift DSL for making more interactive tools for your shell.
Add Chroma Shell to your swift package to give it a try.
.package(
url: "https://github.com/zaneenders/chroma-shell.git",
revision: "main"),
.product(name: "ChromaShell", package: "chroma-shell"),
You can also clone the repo and swift run AsyncUpdate
or the name of one of the examples you wanna try.
import ChromaShell
@main
struct Scribe: ChromaShell {
var main: some Block {
"Hello world"
}
}
Checkout the docs for more details about the project.
ShellExample A simple example of running a shell command in the background.
AsyncUpdate Shows the ui updating from an external async source.
FileSystem An example browsing the file system.