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

19 lines
494 B
Go

package schemas
import (
"github.com/databricks/cli/libs/cmdio"
"github.com/databricks/databricks-sdk-go/service/catalog"
"github.com/spf13/cobra"
)
func listOverride(listCmd *cobra.Command, listReq *catalog.ListSchemasRequest) {
listCmd.Annotations["template"] = cmdio.Heredoc(`
{{header "Full Name"}} {{header "Owner"}} {{header "Comment"}}
{{range .}}{{.FullName|green}} {{.Owner|cyan}} {{.Comment}}
{{end}}`)
}
func init() {
listOverrides = append(listOverrides, listOverride)
}