v0.19.5
Features
- command: support import map in upgrade command (#265) (b400131)
- command: add support for required env vars (#261) (ee69526)
- command: make parsed environment variables available via command options (#263) (102161e)
- command: add prefix to environment variable options (#268) (44c80c8)
await new Command<void>()
.env<{ outputFile?: string }>(
"CC_OUTPUT_FILE=<value:string>",
"The output file.",
{ prefix: "CC_" },
)
.option<{ outputFile?: string }>(
"--output-file <value:string>",
"The output file.",
)
.action((options) => console.log(options.outputFile))
.parse();
$ CC_OUTPUT_FILE=foo.txt deno run example.ts
foo.txt
$ CC_OUTPUT_FILE=foo.txt deno run example.ts --output-file bar.txt
bar.txt
Bug Fixes
Code Refactoring
- command: refactor executable sub-commands (#259) (a13c79f)
- command: remove extra new line from getHelp() and completion generator methods (#257) (99ccc2a)
- table: use console.log to render output (#258) (4f05fad)
Chore
- ci: update release workflow (65ba62a, 1c6dc9d)
- ci: add codecov config (#267) (c54627a)
- codecov: upgrade to codecov/codecov-action@v2 (#266) (18c023c)
- upgrade: deno/std v0.104.0 (#270) (15af5bf)