@affinidi/cli 1.31.6 → 1.31.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affinidi/cli",
3
- "version": "1.31.6",
3
+ "version": "1.31.8",
4
4
  "description": "Affinidi Elements command-line-interface",
5
5
  "author": "affinidi.com",
6
6
  "license": "Apache-2.0",
@@ -12,7 +12,6 @@
12
12
  "files": [
13
13
  "/bin",
14
14
  "/dist",
15
- "/scripts/autocomplete.cjs",
16
15
  "/npm-shrinkwrap.json",
17
16
  "/oclif.manifest.json"
18
17
  ],
@@ -53,7 +52,6 @@
53
52
  "homepage": "https://github.com/affinityproject/affinidi-cli#readme",
54
53
  "dependencies": {
55
54
  "@oclif/core": "^1.19.2",
56
- "@oclif/plugin-autocomplete": "^1.3.6",
57
55
  "@oclif/plugin-help": "^5.1.16",
58
56
  "@oclif/plugin-plugins": "^2.1.5",
59
57
  "axios": "^1.1.3",
@@ -109,8 +107,7 @@
109
107
  "commands": "./dist/commands",
110
108
  "plugins": [
111
109
  "@oclif/plugin-help",
112
- "@oclif/plugin-plugins",
113
- "@oclif/plugin-autocomplete"
110
+ "@oclif/plugin-plugins"
114
111
  ],
115
112
  "topicSeparator": " ",
116
113
  "topics": {}
@@ -1,29 +0,0 @@
1
- const { exec } = require('child_process')
2
-
3
- exec('echo $SHELL', (err, stdout, stderr) => {
4
- if (err) {
5
- // node couldn't execute the command
6
- return
7
- }
8
-
9
- if(stdout.includes('zsh')){
10
- execEnvVarCommand('zsh')
11
- return
12
- }
13
- if(stdout.includes('bash')){
14
- execEnvVarCommand('bash')
15
- return
16
- }
17
- console.log('Auto-completion supports only zsh or bash shells.')
18
- })
19
-
20
- const execEnvVarCommand = (shell) => {
21
- exec(`printf "eval $(affinidi autocomplete:script ${shell})" >> ~/.${shell}rc; source ~/.${shell}rc`,(err, stdout, stderr) =>{
22
- if (err){
23
- return
24
- }
25
- if (stderr){
26
- console.log("Failed to activate auto-completion")
27
- }
28
- return
29
- } )}