GitHub - electrikmilk/cherri: Siri Shortcuts Programming Language ๐Ÿ’ ยท GitHub

Source: original

Cherri Icon

Cherri

Releases Go License Platform GoDoc Go Report Card

Cherri (pronounced cherry) is a Shortcuts programming language that compiles directly to a valid runnable Shortcut.

The primary goal is to make it practical to create large Shortcut projects (within the limitations of Shortcuts) and maintain them long term.

Hello World Example

๐ŸŒŸ Top Features

Resources

Installation

You can install Cherri by downloading the latest release or via the Homebrew or Nix package managers:

Install via Homebrew

If you have Homebrew installed, you can run:

Add Tap:

brew tap electrikmilk/cherri

Install:

brew install electrikmilk/cherri/cherri

Install via Nix

If you have Nix installed, you can run:

nix profile install github:electrikmilk/cherri

Alternatively, you can use nix-direnv to get an isolated, effortless dev environment where cherri is available based on which directory you're in. Then you would use_flake and add Cherri to flake.nix:

{ inputs.cherri.url = "github:electrikmilk/cherri";

{ # outputs.packages.${system}.default = pkgs.mkShell etc - omitted for brevity buildInputs = [ inputs.cherri.packages.${system}.cherri ] } }

Then run direnv allow in the directory with the flake.nix file.

Usage

cherri file.cherri

Run cherri without any arguments to see all options and usage. For development, use the --debug (or -d) option to print stack traces, debug information, and output a .plist file.

Why another Shortcuts language?

Because it's fun :)

Some languages have been abandoned, don't work well, or no longer work. I don't want Shortcuts languages to die. There should be more, not less.

Plus, some stability comes with this project being on macOS and not iOS, and I'm not aware of another Shortcuts language with macOS as its platform other than Buttermilk.

Community

Credits

Reference

Inspiration

This project started on October 5, 2022.