Module
Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
v0.4.0 (Sat Apr 4 23:34:06 2020)
- feat: add support for deno v0.39.0 (d828f0c)
Features
- command: add zsh completions support (9493d90, f54d3a2)
- command: add
complete
sub-command tocompletions
command (fb63ec7) - command: add complete method for custom auto completions (7d5d25e, 9406a84, 5ce209d)
- command: complete command names on help command (5897be1)
- command: add
action
type (164585e) - command: add
command
type (2b9608c) - command: add autocompletion for types (16d5237)
- flags: support method as option default value (ce09421)
- table: add
border
option (a785164)
Bug Fixes
- flags: fix default value (0244b50)
Code Refactoring
- command: export default types (34fcddd)
- command: make
complete
method in custom type class’s optional. (253cd74) - command: update
completions
description (a3c5c72) - flags: refactor
validateFlags
method (2b51730) - flags: refactor
getOptions
method (3927c36)
Chore
- license: update copyright (8264b1a)
Unit/Integration Tests
- command: update sub-command test (0939b6d)
- command,flags: don’t call
Deno.runTests()
in test’s (57f3a34) - flags: refactor test’s (cf97a15, c021659)
- flags: add value test (6e3bc57)
- flags: add default value test (2fbfd54)
- flags: add collect test (3c14011)
Documentation Updates
BREAKING CHANGES
command,flags: rename
requires
option todepends
(c937466)To define depending options you have tu use the options
depends
instead ofrequires
now.command,flags: call
parseValue
only if the flag has a value (ab5ba30)Change type of
value
param fromType.parse()
method fromstring | false
tostring
v0.3.0 (Tue Mar 31 17:49:50 2020)
Features
- add support for deno v0.38.0 (80d7ba4, 9824899, 26b58be)
- command: add support for custom type class’s (7006a67)
- flags: add
parse
and removetypes
option to simplify custom types (d1bc510)
Bug Fixes
- command: suppress
Missing argument(s)
error for standalone options (47b162e) - command: fix
IArgumentDetails
andIOption
interface (52193e5)
Code Refactoring
- command: change type of commands from Array to Map (52f7e1f)
- command: refactor sub-command helper methods (d6d1b05)
- command: refactor internal args handling and add some args helper methods (957347e)
Documentation Updates
v0.2.0 (Mon Mar 23 00:36:36 2020)
Features
- command: validate environment variables (179ef30)
- command: add support for custom types (fbfea55)
- flags: add
parseFlagValue()
method (1983bd1)
Code Refactoring
- command: refactor
env()
method (a1a3364) - command: print help when the
completions
command is called without arguments (b2c4f91) - command: update description of
completions
command (5feeb77) - command: update description of
help
command (15a3fd5) - command: print only first line of description in options and command list (8cf33a1)
- command: exit program after help and version is printed (05bc677)
- flags: refactor
string
type (6900462) - flags: refactor
boolean
type (10997f6) - table: refactor
table
method (8228ac1)
Documentation Updates
v0.1.0 (2020-03-18)
- add entry points (e86d44e)
Features
- command: add
command
module (3f95ec6, 789faa3, bf3a20c, 148c810, d2faa96) - flags: add
flags
module (7eaab8b) - table: add
table
module (e05aaa3)