mirror of https://github.com/databricks/cli.git
18 lines
400 B
Go
18 lines
400 B
Go
package catalogs
|
|
|
|
import (
|
|
"github.com/databricks/cli/libs/cmdio"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func listOverride(listCmd *cobra.Command) {
|
|
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{header "Name"}} {{header "Type"}} {{header "Comment"}}
|
|
{{range .}}{{.Name|green}} {{blue "%s" .CatalogType}} {{.Comment}}
|
|
{{end}}`)
|
|
}
|
|
|
|
func init() {
|
|
listOverrides = append(listOverrides, listOverride)
|
|
}
|