forked from dfinity/keysmith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage.go
46 lines (42 loc) · 1.13 KB
/
usage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package main
import (
"fmt"
"github.com/KevinTroyT/keysmith/netservice"
"github.com/dfinity/keysmith/cmd"
)
func Usage() string {
return fmt.Sprintf(`usage: keysmith <command> [<args>]
Available Commands:
%s Print your account identifier.
%s Generate your mnemonic seed.
%s Print your legacy address.
%s Print your principal identifier.
%s Write your private key to a file.
%s Print your public key.
%s Print the version number.
%s Print your extended public key.
%s Network service configurations.
`,
cmd.ACCOUNT_CMD,
cmd.GENERATE_CMD,
cmd.LEGACY_ADDRESS_CMD,
cmd.PRINCIPAL_CMD,
cmd.PRIVATE_KEY_CMD,
cmd.PUBLIC_KEY_CMD,
cmd.VERSION_CMD,
cmd.X_PUBLIC_KEY_CMD,
netservice.NETWORK_CMD,
)
}
func NetUsage() string {
return fmt.Sprintf(`usage: keysmith netservice <command> [<args>]
Available Commands:
%s Start network service.
%s Stop network service.
%s Restart network service.
`,
netservice.NETWORK_CMD_START,
netservice.NETWORK_CMD_STOP,
netservice.NETWORK_CMD_RESTART,
)
}