Skip to content

zaneenders/chroma-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chroma Shell

A basic Swift DSL for making more interactive tools for your shell.

Getting started

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.

Hello world

import ChromaShell

@main
struct Scribe: ChromaShell {
    var main: some Block {
        "Hello world"
    }
}

Checkout the docs for more details about the project.

Examples

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.

Releases

No releases published

Packages

No packages published

Languages