Add autocomplete installation scripts to package.json. Update readme.
This commit is contained in:
@@ -19,7 +19,11 @@
|
||||
"nuke": "tsx scripts/rm-dbs.ts",
|
||||
"nuke:dry": "tsx scripts/rm-dbs.ts --dry",
|
||||
"format": "prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .gitignore",
|
||||
"format:check": "prettier --check ."
|
||||
"format:check": "prettier --check .",
|
||||
"autocomplete:install": "node dist/cli/index.js completions bash --install",
|
||||
"autocomplete:install:bash": "node dist/cli/index.js completions bash --install",
|
||||
"autocomplete:install:zsh": "node dist/cli/index.js completions zsh --install",
|
||||
"autocomplete:install:fish": "node dist/cli/index.js completions fish --install"
|
||||
},
|
||||
"keywords": [
|
||||
"crypto",
|
||||
|
||||
23
readme.md
23
readme.md
@@ -61,6 +61,12 @@ npm run build
|
||||
# ----- End CLI Setup -----
|
||||
```
|
||||
|
||||
### Run TUI in dev mode
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
### Install globally
|
||||
|
||||
```bash
|
||||
@@ -68,6 +74,23 @@ npm run build
|
||||
npm install -g .
|
||||
```
|
||||
|
||||
### Install autocomplete completions (From the xo-cli directory)
|
||||
|
||||
#### Install for bash
|
||||
```bash
|
||||
npm run autocomplete:install:bash
|
||||
```
|
||||
|
||||
#### Install for zsh
|
||||
```bash
|
||||
npm run autocomplete:install:zsh
|
||||
```
|
||||
|
||||
#### Install for fish
|
||||
```bash
|
||||
npm run autocomplete:install:fish
|
||||
```
|
||||
|
||||
### Run the CLI
|
||||
```bash
|
||||
# If globally installed (Not really usable if not globally installed)
|
||||
|
||||
Reference in New Issue
Block a user