Highlight current account(s) in `account list`
@@ -192,9 +192,13 @@ func (account *Account) printAccountListHelp(writer io.Writer) {
func (account *Account) listAccounts(writer io.Writer) {
fmt.Fprintln(writer, "Available accounts:")
for _, acc := range config.Current.Accounts {
+ if acc.Token == config.Current.Token {
+ fmt.Fprintln(writer, " [orange]> "+acc.Name+"[white]")
+ } else {
fmt.Fprintln(writer, " * "+acc.Name)
}
}
+}
func (account *Account) printAccountCurrentHelp(writer io.Writer) {
fmt.Fprintln(writer, "Usage: account current")
