Skip to content

Commit d672128

Browse files
committed
[PLUGINS]: closes issue #14
Signed-off-by: ashish <[email protected]> Signed-off-by: ashish <[email protected]>
1 parent 36bce07 commit d672128

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,46 @@ USAGE
4646
<!-- usagestop -->
4747
# Commands
4848
<!-- commands -->
49+
* [`cdt autocomplete [SHELL]`](#cdt-autocomplete-shell)
4950
* [`cdt bundlephobia [PACKAGE]`](#cdt-bundlephobia-package)
5051
* [`cdt crypto [STRING]`](#cdt-crypto-string)
5152
* [`cdt hash [STRING]`](#cdt-hash-string)
5253
* [`cdt help [COMMAND]`](#cdt-help-command)
5354
* [`cdt minify [FILE]`](#cdt-minify-file)
5455

56+
## `cdt autocomplete [SHELL]`
57+
58+
display autocomplete installation instructions
59+
60+
```
61+
USAGE
62+
$ cdt autocomplete [SHELL]
63+
64+
ARGUMENTS
65+
SHELL shell type
66+
67+
OPTIONS
68+
-r, --refresh-cache Refresh cache (ignores displaying instructions)
69+
70+
EXAMPLES
71+
$ cdt autocomplete
72+
$ cdt autocomplete bash
73+
$ cdt autocomplete zsh
74+
$ cdt autocomplete --refresh-cache
75+
```
76+
77+
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v0.1.4/src/commands/autocomplete/index.ts)_
78+
5579
## `cdt bundlephobia [PACKAGE]`
5680

57-
Find cost of adding a npm/yarn package
81+
Find cost of adding a npm/yarn packages or all dependencies in package.json file
5882

5983
```
6084
USAGE
6185
$ cdt bundlephobia [PACKAGE]
6286
6387
OPTIONS
88+
-f, --file=file path for package.json file
6489
-h, --help show CLI help
6590
-p, --packages=packages packages for which cost is required, can pass more than one separated by space
6691
```

src/commands/bundlephobia.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Utilities from '../utilities/utilities'
99
// ADD package.json support
1010
// ADD VALID tests ( for now they just ignoring )
1111
export default class Bundlephobia extends Command {
12-
static description = 'Find cost of adding a npm/yarn package'
12+
static description = 'Find cost of adding a npm/yarn packages or all dependencies in package.json file'
1313

1414
static flags = {
1515
help: flags.help({char: 'h'}),

0 commit comments

Comments
 (0)