Skip to content

Commit

Permalink
synced account paramters to address
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Jan 10, 2021
1 parent 22777e8 commit 5ec838b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/bm-client/cmd/account_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func short(ID string) string {

func displayAccounts(v *vault.Vault) {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Address", "Name", "Routing ID", "Server"})
table.SetHeader([]string{"Account", "Name", "Routing ID", "Server"})

for _, a := range v.Store.Accounts {
table.Append([]string{
Expand Down
4 changes: 2 additions & 2 deletions cmd/bm-client/cmd/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ var apiAddress *string
func init() {
rootCmd.AddCommand(apiCmd)

apiAddress = apiCmd.PersistentFlags().StringP("address", "a", "", "Address")
_ = apiCmd.MarkPersistentFlagRequired("address")
apiAddress = apiCmd.PersistentFlags().StringP("account", "a", "", "Account")
_ = apiCmd.MarkPersistentFlagRequired("account")
}
4 changes: 2 additions & 2 deletions cmd/bm-client/cmd/organisation_invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ var (
func init() {
organisationCmd.AddCommand(organisationInviteCmd)

orgInvOrg = organisationInviteCmd.Flags().StringP("org", "o", "", "org name")
orgInvAddress = organisationInviteCmd.Flags().StringP("addr", "a", "", "address")
orgInvOrg = organisationInviteCmd.Flags().StringP("organisation", "o", "", "org name")
orgInvAddress = organisationInviteCmd.Flags().StringP("account", "a", "", "account")
orgInvRoutingID = organisationInviteCmd.Flags().StringP("routing-id", "r", "", "routing ID where this user will be invited to")

_ = organisationInviteCmd.MarkFlagRequired("org")
Expand Down
2 changes: 1 addition & 1 deletion cmd/bm-client/handlers/list_accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
func ListAccounts(v *vault.Vault, displayKeys bool) {
table := tablewriter.NewWriter(os.Stdout)

headers := []string{"Address", "Name", "Routing ID", "Route Host"}
headers := []string{"Account", "Name", "Routing ID", "Route Host"}
align := []int{tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT, tablewriter.ALIGN_LEFT}

if displayKeys {
Expand Down

0 comments on commit 5ec838b

Please sign in to comment.