Skip to content

Commit

Permalink
feat(cli): add shell completion support for bash & fish
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Jun 27, 2020
1 parent c6d0fd8 commit 8b5d03a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ USAGE
$ synor completion
OPTIONS
-s, --shell=zsh (required) Name of shell
-s, --shell=bash|fish|zsh (required) Name of shell
EXAMPLE
$ synor completion --shell zsh
```

_See code: [oclif-plugin-completion](https://github.com/MunifTanjim/oclif-plugin-completion/blob/0.1.0/src/commands/completion/index.ts)_
_See code: [oclif-plugin-completion](https://github.com/MunifTanjim/oclif-plugin-completion/blob/0.3.0/src/commands/completion/index.ts)_

## `synor completion:generate`

Expand All @@ -120,13 +120,13 @@ USAGE
$ synor completion:generate
OPTIONS
-s, --shell=zsh (required) Name of shell
-s, --shell=bash|fish|zsh (required) Name of shell
EXAMPLE
$ synor completion:generate --shell zsh
```

_See code: [oclif-plugin-completion](https://github.com/MunifTanjim/oclif-plugin-completion/blob/0.1.0/src/commands/completion/generate.ts)_
_See code: [oclif-plugin-completion](https://github.com/MunifTanjim/oclif-plugin-completion/blob/0.3.0/src/commands/completion/generate.ts)_

## `synor current`

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@oclif/plugin-help": "^2",
"cli-ux": "^5.4.5",
"lodash.defaultsdeep": "^4.6.1",
"oclif-plugin-completion": "^0.1.0",
"oclif-plugin-completion": "^0.3.0",
"tslib": "^1.11.1"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8903,10 +8903,10 @@ object.values@^1.1.0:
function-bind "^1.1.1"
has "^1.0.3"

oclif-plugin-completion@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/oclif-plugin-completion/-/oclif-plugin-completion-0.1.0.tgz#dc73f335472b39286e95cf461b4ce616ac6abbc5"
integrity sha512-yPp78+EhBb7M0YKQPYjbAy3JP6VGA35kj3280PW5Am+n5qvypQTUV8RUbGZ8cBJWHV77020XJzukU35hbbr5hw==
oclif-plugin-completion@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/oclif-plugin-completion/-/oclif-plugin-completion-0.3.0.tgz#c30f47b50ca60b66fe0a42539ba677507ba2eace"
integrity sha512-ED2mzZ82+kvdtGoZCD7kduq2zpIwG1z/6+7vWB2hYn0IQcE5u4TlR0dW0muzIUI/97CcjmK/C0UooReCuZvr/A==
dependencies:
"@oclif/command" "^1"
"@oclif/config" "^1"
Expand Down

0 comments on commit 8b5d03a

Please sign in to comment.