@contextual-io/cli 0.2.2 → 0.3.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.
package/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @contextual-io/cli
20
20
  $ ctxl COMMAND
21
21
  running command...
22
22
  $ ctxl (--version)
23
- @contextual-io/cli/0.2.2 linux-x64 node-v25.2.1
23
+ @contextual-io/cli/0.3.1 linux-x64 node-v25.2.1
24
24
  $ ctxl --help [COMMAND]
25
25
  USAGE
26
26
  $ ctxl COMMAND
@@ -29,6 +29,7 @@ USAGE
29
29
  <!-- usagestop -->
30
30
  # Commands
31
31
  <!-- commands -->
32
+ * [`ctxl autocomplete [SHELL]`](#ctxl-autocomplete-shell)
32
33
  * [`ctxl config <COMMAND>`](#ctxl-config-command)
33
34
  * [`ctxl config add CONFIG-ID`](#ctxl-config-add-config-id)
34
35
  * [`ctxl config current`](#ctxl-config-current)
@@ -48,6 +49,37 @@ USAGE
48
49
  * [`ctxl records query [URI]`](#ctxl-records-query-uri)
49
50
  * [`ctxl records replace [URI]`](#ctxl-records-replace-uri)
50
51
 
52
+ ## `ctxl autocomplete [SHELL]`
53
+
54
+ Display autocomplete installation instructions.
55
+
56
+ ```
57
+ USAGE
58
+ $ ctxl autocomplete [SHELL] [-r]
59
+
60
+ ARGUMENTS
61
+ [SHELL] (zsh|bash|powershell) Shell type
62
+
63
+ FLAGS
64
+ -r, --refresh-cache Refresh cache (ignores displaying instructions)
65
+
66
+ DESCRIPTION
67
+ Display autocomplete installation instructions.
68
+
69
+ EXAMPLES
70
+ $ ctxl autocomplete
71
+
72
+ $ ctxl autocomplete bash
73
+
74
+ $ ctxl autocomplete zsh
75
+
76
+ $ ctxl autocomplete powershell
77
+
78
+ $ ctxl autocomplete --refresh-cache
79
+ ```
80
+
81
+ _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v3.2.39/src/commands/autocomplete/index.ts)_
82
+
51
83
  ## `ctxl config <COMMAND>`
52
84
 
53
85
  manage configs
@@ -34,9 +34,9 @@ export const codeExchange = async ({ audience, clientId, domain }) => {
34
34
  method: "POST",
35
35
  });
36
36
  const codeJson = await codeRsp.json();
37
- const { device_code, interval, verification_uri_complete } = codeJson;
37
+ const { device_code, interval, user_code, verification_uri_complete } = codeJson;
38
38
  console.log("We've launched your web browser to complete the login process.");
39
- console.log("Verification code: %s", device_code);
39
+ console.log("Verification code: %s", user_code);
40
40
  console.log();
41
41
  console.log("Waiting for login to complete...");
42
42
  await open(`${verification_uri_complete}&audience=${audience}`);
@@ -759,5 +759,5 @@
759
759
  ]
760
760
  }
761
761
  },
762
- "version": "0.2.2"
762
+ "version": "0.3.1"
763
763
  }
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@contextual-io/cli",
3
3
  "description": "Contextual CLI",
4
- "version": "0.2.2",
4
+ "version": "0.3.1",
5
5
  "author": "Nasser Oloumi",
6
6
  "bin": {
7
7
  "ctxl": "./bin/run.js"
8
8
  },
9
9
  "dependencies": {
10
10
  "@oclif/core": "^4",
11
+ "@oclif/plugin-autocomplete": "^3.2.39",
11
12
  "@oclif/plugin-help": "^6",
12
13
  "@oclif/plugin-not-found": "^3.2.73",
13
14
  "@oclif/table": "^0.5.1",
@@ -58,7 +59,8 @@
58
59
  "commands": "./dist/commands",
59
60
  "plugins": [
60
61
  "@oclif/plugin-help",
61
- "@oclif/plugin-not-found"
62
+ "@oclif/plugin-not-found",
63
+ "@oclif/plugin-autocomplete"
62
64
  ],
63
65
  "topicSeparator": " ",
64
66
  "topics": {