@affinidi/cli 1.31.6 → 1.31.7

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.7",
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
  ],
@@ -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
- } )}