Executable
import type { Executable } from "https://garn.io/ts/v0.0.19/executable.ts";
Executable
s are commands (usually shell snippets) that are being run on
your local machine (not in a sandbox).
They are based on an underlying Environment
, and can make use of e.g. the
executables that that Environment
provides.
You can use Executables
for a variety of purposes:
- Running your projects main executable during development,
- Running a code formatter,
- Running a code generator,
- Spinning up a database for development,
- etc.
You can run Executable
s with garn run
.
type Executable = {
tag: "executable";
nixExpression: NixExpression;
description: string;
setDescription: (this: Executable, newDescription: string) => Executable;
};§Type
§
{
[src]tag: "executable";
nixExpression: NixExpression;
description: string;
setDescription: (this: Executable, newDescription: string) => Executable;
}