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

@@ -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)