@tsuga/cli 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +24 -0
  2. package/dist/cli.js +141 -55
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -22,6 +22,30 @@ tsuga self-update
22
22
 
23
23
  This runs `npm install -g @tsuga/cli@latest`. The CLI also checks for new versions once a day and prints a notice when one is available.
24
24
 
25
+ ## Shell completion
26
+
27
+ Tab-complete commands and flags in `bash`, `zsh`, or `fish`.
28
+
29
+ For `bash` and `zsh`, add the matching line to your shell startup file:
30
+
31
+ ```bash
32
+ # ~/.bashrc
33
+ eval "$(tsuga completion bash)"
34
+
35
+ # ~/.zshrc
36
+ eval "$(tsuga completion zsh)"
37
+ ```
38
+
39
+ Then open a new shell (or `source` the file).
40
+
41
+ For `fish`, write the script to your completions directory:
42
+
43
+ ```fish
44
+ tsuga completion fish > ~/.config/fish/completions/tsuga.fish
45
+ ```
46
+
47
+ Fish loads it automatically in new shells.
48
+
25
49
  ## Authentication
26
50
 
27
51
  All authentication lives under `tsuga auth`.