Skip to content

Commit

Permalink
chore(cmd): manually order command list (ignite#1329)
Browse files Browse the repository at this point in the history
* chore(cmd): manually order command list

* chore
  • Loading branch information
ilgooz authored Jul 5, 2021
1 parent d6c53e8 commit 7cd66d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion starport/cmd/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ func NewChain() *cobra.Command {
Args: cobra.ExactArgs(1),
}

c.AddCommand(NewChainInit())
c.AddCommand(NewChainServe())
c.AddCommand(NewChainBuild())
c.AddCommand(NewChainInit())
c.AddCommand(NewChainFaucet())

return c
Expand Down
10 changes: 7 additions & 3 deletions starport/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ var (

// New creates a new root command for `starport` with its sub commands.
func New() *cobra.Command {
cobra.EnableCommandSorting = false

c := &cobra.Command{
Use: "starport",
Short: "A developer tool for building Cosmos SDK blockchains",
Expand All @@ -36,15 +38,17 @@ func New() *cobra.Command {
return goenv.ConfigurePath()
},
}

c.AddCommand(NewScaffold())
c.AddCommand(NewChain())
c.AddCommand(NewGenerate())
c.AddCommand(NewDocs())
c.AddCommand(NewRelayer())
c.AddCommand(NewVersion())
c.AddCommand(NewNetwork())
c.AddCommand(NewRelayer())
c.AddCommand(NewTools())
c.AddCommand(NewDocs())
c.AddCommand(NewVersion())
c.AddCommand(deprecated()...)

return c
}

Expand Down
8 changes: 4 additions & 4 deletions starport/cmd/scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ func NewScaffold() *cobra.Command {
}

c.AddCommand(NewScaffoldChain())
c.AddCommand(NewScaffoldQuery())
c.AddCommand(NewScaffoldModule())
c.AddCommand(NewScaffoldWasm())
c.AddCommand(NewScaffoldPacket())
c.AddCommand(NewScaffoldMessage())
c.AddCommand(NewScaffoldList())
c.AddCommand(NewScaffoldMap())
c.AddCommand(NewScaffoldMessage())
c.AddCommand(NewScaffoldQuery())
c.AddCommand(NewScaffoldPacket())
c.AddCommand(NewScaffoldVue())
c.AddCommand(NewScaffoldWasm())

return c
}
Expand Down

0 comments on commit 7cd66d7

Please sign in to comment.