Skip to content

Commit

Permalink
Use seperate cmd binaries for p and c
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed May 3, 2022
1 parent e766d6e commit aa2df72
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions cmd/interchain-security-pd/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package main

import (
"os"

"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
"github.com/cosmos/interchain-security/app"
"github.com/tendermint/spm/cosmoscmd"
)

func main() {
rootCmd, _ := cosmoscmd.NewRootCmd(
app.AppName,
app.AccountAddressPrefix,
app.DefaultNodeHome,
app.AppName,
app.ModuleBasics,
app.New,
// this line is used by starport scaffolding # root/arguments
)

if err := svrcmd.Execute(rootCmd, app.DefaultNodeHome); err != nil {
switch e := err.(type) {
case server.ErrorCode:
os.Exit(e.Code)

default:
os.Exit(1)
}
}
}

0 comments on commit aa2df72

Please sign in to comment.