-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9b6b26
commit 2a98c55
Showing
4 changed files
with
38 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package cli | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/spf13/cobra" | ||
availblob "github.com/vitwit/avail-da-module" | ||
) | ||
|
||
const ( | ||
FlagPubKey = "pubkey" | ||
FlagAddress = "address" | ||
FlagLedger = "ledger" | ||
FlagCoinType = "coin-type" | ||
) | ||
|
||
// NewKeysCmd returns a root CLI command handler for all x/availblob keys commands. | ||
func NewKeysCmd() *cobra.Command { | ||
keysCmd := &cobra.Command{ | ||
Use: availblob.ModuleName, | ||
Short: availblob.ModuleName + " keys subcommands", | ||
DisableFlagParsing: true, | ||
SuggestionsMinimumDistance: 2, | ||
RunE: client.ValidateCmd, | ||
} | ||
|
||
keysCmd.AddCommand() | ||
|
||
return keysCmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.