Skip to content

Commit

Permalink
Merge pull request #342 from HubSpot/auto-completion
Browse files Browse the repository at this point in the history
Add autocompletion script
  • Loading branch information
drewjenkins authored Oct 13, 2020
2 parents 1d963cb + a5df5e0 commit 20e4ac5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/cms-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ cd ~
hs init
```

#### Auto Completion
You can set up command autocompletion by running

```bash
hs completion
```

and copying the output to either your `.bashrc` or `.zshrc`, and then sourcing that file `source ~/.bashrc` `source ~/.zshrc` or restarting your terminal.

## Commands
A full breakdown of the commands can be found on the [local development tools reference page](https://designers.hubspot.com/docs/developer-reference/local-development-cms-cli).

Expand Down
1 change: 1 addition & 0 deletions packages/cms-cli/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const argv = yargs
.help()
.recommendCommands()
.demandCommand(1, '')
.completion()
.strict().argv;

if (argv.help) {
Expand Down

0 comments on commit 20e4ac5

Please sign in to comment.