Add autocomplete installation scripts to package.json. Update readme.

This commit is contained in:
2026-05-04 05:09:40 +00:00
parent 6196d33b2a
commit f978d740fe
2 changed files with 28 additions and 1 deletions

View File

@@ -19,7 +19,11 @@
"nuke": "tsx scripts/rm-dbs.ts", "nuke": "tsx scripts/rm-dbs.ts",
"nuke:dry": "tsx scripts/rm-dbs.ts --dry", "nuke:dry": "tsx scripts/rm-dbs.ts --dry",
"format": "prettier --write \"**/*.{js,ts,md,json}\" --ignore-path .gitignore", "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": [ "keywords": [
"crypto", "crypto",

View File

@@ -61,6 +61,12 @@ npm run build
# ----- End CLI Setup ----- # ----- End CLI Setup -----
``` ```
### Run TUI in dev mode
```bash
npm run dev
```
### Install globally ### Install globally
```bash ```bash
@@ -68,6 +74,23 @@ npm run build
npm install -g . 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 ### Run the CLI
```bash ```bash
# If globally installed (Not really usable if not globally installed) # If globally installed (Not really usable if not globally installed)