in cli/commands/locations.go [50:63]
func (cmd *Locations) Run(scope scope.Scope, c *cli.Context) {
if err := net.VerifyLoginURL(cmd.network); err != nil {
error_handler.ErrorExit(err)
}
locationList, err := locations.LocationList(cmd.network)
if nil != err {
error_handler.ErrorExit(err)
}
table := terminal.NewTable([]string{"Id", "Name", "Spec"})
for _, location := range locationList {
table.Add(location.Id, location.Name, location.Spec)
}
table.Print()
}