@twin.org/crypto-cli 0.0.3-next.4 → 0.0.3-next.40

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.
@@ -22,7 +22,69 @@ The main entry point for the CLI.
22
22
 
23
23
  ## Methods
24
24
 
25
- ### run()
25
+ ### execute() {#execute}
26
+
27
+ > **execute**(`options`, `localesDirectory`, `argv`): `Promise`\<`number`\>
28
+
29
+ Execute the command line processing.
30
+
31
+ #### Parameters
32
+
33
+ ##### options
34
+
35
+ `ICliOptions`
36
+
37
+ The options for the CLI.
38
+
39
+ ##### localesDirectory
40
+
41
+ `string`
42
+
43
+ The path to load the locales from.
44
+
45
+ ##### argv
46
+
47
+ `string`[]
48
+
49
+ The process arguments.
50
+
51
+ #### Returns
52
+
53
+ `Promise`\<`number`\>
54
+
55
+ The exit code.
56
+
57
+ #### Inherited from
58
+
59
+ `CLIBase.execute`
60
+
61
+ ***
62
+
63
+ ### configureRoot() {#configureroot}
64
+
65
+ > `protected` **configureRoot**(`program`): `void`
66
+
67
+ Configure any options or actions at the root program level.
68
+
69
+ #### Parameters
70
+
71
+ ##### program
72
+
73
+ `Command`
74
+
75
+ The root program command.
76
+
77
+ #### Returns
78
+
79
+ `void`
80
+
81
+ #### Inherited from
82
+
83
+ `CLIBase.configureRoot`
84
+
85
+ ***
86
+
87
+ ### run() {#run}
26
88
 
27
89
  > **run**(`argv`, `localesDirectory?`, `options?`): `Promise`\<`number`\>
28
90
 
@@ -1,4 +1,6 @@
1
- # @twin.org/crypto-cli - Examples
1
+ # Crypto CLI Usage
2
+
3
+ Use this guide to run commands, inspect options and check expected terminal output before automation.
2
4
 
3
5
  ## Running
4
6
 
@@ -33,9 +35,7 @@ Commands:
33
35
  help [command] display help for command
34
36
  ```
35
37
 
36
- ## Command
37
-
38
- ### mnemonic
38
+ ## Mnemonic Output
39
39
 
40
40
  The mnemonic command can be used to generate a new mnemonic for use in the other crypto functions.
41
41
 
@@ -78,7 +78,7 @@ Options:
78
78
  -h, --help display help for command
79
79
  ```
80
80
 
81
- #### Example
81
+ ### Example
82
82
 
83
83
  To output generate mnemonic and base64 formatted seed, store them in a JSON and env file but not display them to the console you would enter the following.
84
84
 
@@ -102,7 +102,7 @@ and the JSON file would be:
102
102
  }
103
103
  ```
104
104
 
105
- ### address
105
+ ## Address Output
106
106
 
107
107
  The address command can be used to generate addresses and key pairs based on the specified seed. The seed can be provided from the command line of read from an environment variable or .env file. By default 10 addresses will be generated starting at address index 0, for account 0.
108
108
 
@@ -209,7 +209,7 @@ Options:
209
209
  -h, --help display help for command
210
210
  ```
211
211
 
212
- #### Examples
212
+ ### Examples
213
213
 
214
214
  To read from an env file and load the variable named SEED from the file, and output only 2 addresses, outputting the keys in base64 format.
215
215
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@twin.org/crypto-cli",
3
- "version": "0.0.3-next.4",
4
- "description": "A command line interface for interacting with the crypto tools",
3
+ "version": "0.0.3-next.40",
4
+ "description": "Command line interface for interacting with the crypto tools",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/twinfoundation/framework.git",
7
+ "url": "git+https://github.com/iotaledger/framework.git",
8
8
  "directory": "apps/crypto-cli"
9
9
  },
10
10
  "author": "martyn.janes@iota.org",
@@ -14,11 +14,11 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/cli-core": "0.0.3-next.4",
18
- "@twin.org/core": "0.0.3-next.4",
19
- "@twin.org/crypto": "0.0.3-next.4",
20
- "@twin.org/nameof": "0.0.3-next.4",
21
- "commander": "14.0.2"
17
+ "@twin.org/cli-core": "0.0.3-next.40",
18
+ "@twin.org/core": "0.0.3-next.40",
19
+ "@twin.org/crypto": "0.0.3-next.40",
20
+ "@twin.org/nameof": "0.0.3-next.40",
21
+ "commander": "14.0.3"
22
22
  },
23
23
  "main": "./dist/es/index.js",
24
24
  "types": "./dist/types/index.d.ts",
@@ -52,7 +52,7 @@
52
52
  "security"
53
53
  ],
54
54
  "bugs": {
55
- "url": "git+https://github.com/twinfoundation/framework/issues"
55
+ "url": "git+https://github.com/iotaledger/framework/issues"
56
56
  },
57
57
  "homepage": "https://twindev.org"
58
58
  }