mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-18 04:43:12 +02:00
Introduce service accounts and bootstrap tokens (#22)
This commit is contained in:
@@ -30,10 +30,15 @@ func runList(cmd *cobra.Command, args []string) error {
|
||||
|
||||
table := uitable.New()
|
||||
|
||||
table.AddRow("Name", "URL")
|
||||
table.AddRow("Name", "URL", "Default")
|
||||
|
||||
for name, context := range config.Contexts {
|
||||
table.AddRow(name, context.URL)
|
||||
var defaultMark string
|
||||
if name == config.DefaultContext {
|
||||
defaultMark = "*"
|
||||
}
|
||||
|
||||
table.AddRow(name, context.URL, defaultMark)
|
||||
}
|
||||
|
||||
fmt.Println(table)
|
||||
|
||||
Reference in New Issue
Block a user