Skip to content

v0.19.5

Compare
Choose a tag to compare
@c4spar c4spar released this 12 Aug 20:52
· 335 commits to main since this release
48079f4

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

  • command: output of --version should end with a new line (#256) (8107875)

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

Documentation Updates

  • update readme's (#269) (83644f9)
  • command: update docs for environment variables (f4cee28, 9d025fc)
  • command: fix incorrectly import module in example (#262) (3e62ad6)
  • command: update docs for executable sub commands (0b2f3d1)