github.com/shrimpyuk/bor@v0.2.15-0.20220224151350-fb4ec6020bae/internal/cli/account.go (about) 1 package cli 2 3 import "github.com/mitchellh/cli" 4 5 type Account struct { 6 UI cli.Ui 7 } 8 9 // Help implements the cli.Command interface 10 func (a *Account) Help() string { 11 return `Usage: bor account <subcommand> 12 13 This command groups actions to interact with accounts. 14 15 List the running deployments: 16 17 $ bor account new 18 19 Display the status of a specific deployment: 20 21 $ bor account import 22 23 List the imported accounts in the keystore: 24 25 $ bor account list` 26 } 27 28 // Synopsis implements the cli.Command interface 29 func (a *Account) Synopsis() string { 30 return "Interact with accounts" 31 } 32 33 // Run implements the cli.Command interface 34 func (a *Account) Run(args []string) int { 35 return cli.RunResultHelp 36 }