mirror of https://github.com/databricks/cli.git
18 lines
406 B
Go
18 lines
406 B
Go
package external_locations
|
|
|
|
import (
|
|
"github.com/databricks/cli/libs/cmdio"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func listOverride(listCmd *cobra.Command) {
|
|
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{header "Name"}} {{header "Credential"}} {{header "URL"}}
|
|
{{range .}}{{.Name|green}} {{.CredentialName|cyan}} {{.Url}}
|
|
{{end}}`)
|
|
}
|
|
|
|
func init() {
|
|
listOverrides = append(listOverrides, listOverride)
|
|
}
|