Gemini is a command-line interface (CLI) tool that allows you to execute slangroom contracts dynamically from specified folders. It provides an easy way to list and run slangroom contracts
as commands or expose them via HTTP in daemon mode.
To use Gemini, you need Go installed on your system. If you don't have Go installed, you can download it from golang.org.
Clone the repository:
git clone https://github.com/ForkbombEu/gemini
Build the executable:
make build
To list all slangroom files in a specified directory, use the following command:
./out/bin/gemini list <folder>
To execute a specific slangroom file, use the following command:
out/bin/
./gemini run <folder> <file>
Gemini can also run in daemon mode, exposing the slangroom files via an HTTP server. Use the -d or --daemon flag:
./out/bin/gemini -d <folder>
If only a folder is provided with the -d flag, Gemini will list the available slangroom files via HTTP.
List all slang files in the examples folder:
./out/bin/gemini list examples
Run a specific slang file:
./out/bin/gemini run examples hello
Start the HTTP server to expose the slang files:
./out/bin/gemini -d examples
go install golang.org/x/pkgsite/cmd/pkgsite@latest && pkgsite