Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Environment

import type { Environment } from "https://garn.io/ts/v0.0.16/environment.ts";

Environments define what files and tools are available to Executables, Checks and development shells.

For example they can contain compilers and developer tools that you want to use on a project, but they may also define other things like environment variables that need to be set.

You can enter an Environment with garn enter.

type Environment = {
tag: "environment";
nixExpression: NixExpression;
setup: NixExpression;
withDevTools(devTools: Array<Package>): Environment;
shell(script: string): Executable;
shell(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Executable;
check(check: string): Check;
check(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Check;
build(build: string): Package;
build(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Package;
}
;

§Type

§
{
tag: "environment";
nixExpression: NixExpression;
setup: NixExpression;
withDevTools(devTools: Array<Package>): Environment;
shell(script: string): Executable;
shell(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Executable;
check(check: string): Check;
check(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Check;
build(build: string): Package;
build(_s: TemplateStringsArray, ..._args: Array<NixStrLitInterpolatable>): Package;
}
[src]