@xx-in/tools 0.0.4 → 0.0.5

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 (2) hide show
  1. package/dist/cli.js +11 -3
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import process4 from "process";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "@xx-in/tools",
10
- version: "0.0.4",
10
+ version: "0.0.5",
11
11
  description: "A command-line tool to run in any system",
12
12
  license: "MIT",
13
13
  type: "module",
@@ -21,7 +21,7 @@ var package_default = {
21
21
  build: "tsup",
22
22
  dev: "tsup --watch",
23
23
  prepublishOnly: "npm run build",
24
- "publish:npm": "npm publish --access public",
24
+ publish: "npm publish --access public",
25
25
  "publish:npm:registry": "npm --registry=https://registry.npmjs.org/ publish --access public"
26
26
  },
27
27
  engines: {
@@ -104,6 +104,10 @@ _xx() {
104
104
  _arguments \\
105
105
  '*:Target Path:_files'
106
106
  ;;
107
+ install)
108
+ _arguments \\
109
+ '*:Install Package:_files'
110
+ ;;
107
111
  help)
108
112
  local -a sub_cmds
109
113
  sub_cmds=(
@@ -160,7 +164,7 @@ _xx() {
160
164
  ;;
161
165
  uninstall)
162
166
  _arguments \\
163
- '*:Package Path:_files'
167
+ '*:Installed App:'
164
168
  ;;
165
169
  unzip)
166
170
  _arguments \\
@@ -253,6 +257,10 @@ _xx_completion() {
253
257
  COMPREPLY=( $(compgen -W "\${sub_opts}" -- \${cur}) )
254
258
  return 0
255
259
  ;;
260
+ install|uninstall)
261
+ COMPREPLY=( $(compgen -f -- "\${cur}") )
262
+ return 0
263
+ ;;
256
264
  upgrade)
257
265
  local sub_opts="-r --registry"
258
266
  COMPREPLY=( $(compgen -W "\${sub_opts}" -- \${cur}) )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xx-in/tools",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A command-line tool to run in any system",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "build": "tsup",
15
15
  "dev": "tsup --watch",
16
16
  "prepublishOnly": "npm run build",
17
- "publish:npm": "npm publish --access public",
17
+ "publish": "npm publish --access public",
18
18
  "publish:npm:registry": "npm --registry=https://registry.npmjs.org/ publish --access public"
19
19
  },
20
20
  "engines": {