forked from ignite/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd.go
More file actions
68 lines (66 loc) · 1.83 KB
/
cmd.go
File metadata and controls
68 lines (66 loc) · 1.83 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package cmd
import (
"github.com/ignite/cli/v29/ignite/services/plugin"
)
// GetCommands returns the list of app commands.
func GetCommands() []*plugin.Command {
return []*plugin.Command{
{
Use: "evolve [command]",
Aliases: []string{"r", "e", "rollkit"},
Short: "Ignite evolve integration",
Commands: []*plugin.Command{
{
Use: "add",
Short: "Add evolve support",
Long: "Add evolve support to your Cosmos SDK chain",
Flags: []*plugin.Flag{
{
Name: flagPath,
Usage: "path of the app",
Shorthand: "p",
Type: plugin.FlagTypeString,
},
{
Name: flagStart,
Usage: "modify start command to use ev-abci (set to false to only add migrate command)",
Type: plugin.FlagTypeBool,
DefaultValue: "true",
},
{
Name: flagMigrate,
Usage: "scaffolds the migrations helpers and modules (to use when migrating from CometBFT)",
Type: plugin.FlagTypeBool,
},
},
},
{
Use: "init",
Short: "Init ev-abci support",
Long: "Initialize the chain and a ev-node sequencer via ev-abci.",
Flags: []*plugin.Flag{
{
Name: flagPath,
Usage: "path of the app",
Shorthand: "p",
Type: plugin.FlagTypeString,
},
},
},
{
Use: "edit-genesis",
Short: "Edit the genesis file to add the evolve sequencer",
Long: "Edit the genesis file to add the evolve sequencer module. This is an alternative to the `ignite evolve init` command, where a chain is already initialized (but not yet started).",
Flags: []*plugin.Flag{
{
Name: flagPath,
Usage: "path of the app",
Shorthand: "p",
Type: plugin.FlagTypeString,
},
},
},
},
},
}
}