databricks-cli/cmd/workspace/metastores/overrides.go

18 lines
386 B
Go

package metastores
import (
"github.com/databricks/cli/libs/cmdio"
"github.com/spf13/cobra"
)
func listOverride(listCmd *cobra.Command) {
listCmd.Annotations["template"] = cmdio.Heredoc(`
{{header "ID"}} {{header "Name"}} {{"Region"}}
{{range .}}{{.MetastoreId|green}} {{.Name|cyan}} {{.Region}}
{{end}}`)
}
func init() {
listOverrides = append(listOverrides, listOverride)
}