-
Notifications
You must be signed in to change notification settings - Fork 4
/
deploy.go
31 lines (26 loc) · 908 Bytes
/
deploy.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
package cmds
import (
mitumcmds "github.com/spikeekips/mitum/launch/cmds"
)
type DeployKeyCommand struct {
New mitumcmds.DeployKeyNewCommand `cmd:"" name:"new" help:"request new deploy key"`
Keys mitumcmds.DeployKeyKeysCommand `cmd:"" name:"keys" help:"deploy keys"`
Key mitumcmds.DeployKeyKeyCommand `cmd:"" name:"key" help:"deploy key"`
Revoke mitumcmds.DeployKeyRevokeCommand `cmd:"" name:"revoke" help:"revoke deploy key"`
}
func NewDeployKeyCommand() DeployKeyCommand {
return DeployKeyCommand{
New: mitumcmds.NewDeployKeyNewCommand(),
Keys: mitumcmds.NewDeployKeyKeysCommand(),
Key: mitumcmds.NewDeployKeyKeyCommand(),
Revoke: mitumcmds.NewDeployKeyRevokeCommand(),
}
}
type DeployCommand struct {
Key DeployKeyCommand `cmd:"" name:"key" help:"deploy key"`
}
func NewDeployCommand() DeployCommand {
return DeployCommand{
Key: NewDeployKeyCommand(),
}
}