Skip to main content
Module

x/cliffy/examples/command/environment_variables.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
#!/usr/bin/env -S deno run --allow-env --unstable
import { Command } from "../../command/command.ts";
await new Command() .env("SOME_ENV_VAR=<value:number>", "Description ...", { global: true, hidden: false, }) .command("hello", "world ...") .parse(Deno.args);
console.log(Deno.env.get("SOME_ENV_VAR"));