deno-cliffy
deno-cliffy copied to clipboard
Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
To reduce verbosity, the option method should have an env option to auto register an environment variable for this option. Without prefix: ```ts new Command() .option("-f, --foo", "example description.") .env("FOO",...
For the rationale, please read this article: [Color and TTYs](https://eklitzke.org/ansi-color-codes). > The reality is that assuming that a terminal supports ANSI color codes is a bad idea for a bunch...
Cliffy panics if the user attempts to respond to an `Input({files: true})` beginning by typing `~/`, before submission. eg. ``` Please enter the path to your GCP Credentials JSON file:...
# Summary Add support for [jsr](https://jsr.io/) repository. # Motivation Allow use of cliffy in [jsr](https://jsr.io/) packages. # Changes - Replace all remote url imports by `jsr` or `npm` imports. -...
# Summary Add buit-in support of [jsr](https://jsr.io/) as upgrade provider. Rework of #687 from main branch (deleting all changes from #679). # Motivation Allow to seamlessly upgrade [jsr](https://jsr.io/) hosted cli....
Would be awesome!
I'm not seeing a way to prefill a prompt with text that the user can edit. Is this something that cliffy supports?
```ts import { Command } from "https://deno.land/x/[email protected]/command/mod.ts" const { output } = await new Command().action(() => 1).parse() console.log(output) // 1 ``` afaik there's no way to retrieve return value from...