mirror of https://github.com/databricks/cli.git
add overrides
This commit is contained in:
parent
7a68d5a0fa
commit
92c6e96d72
|
@ -2,10 +2,11 @@ package external_locations
|
|||
|
||||
import (
|
||||
"github.com/databricks/cli/libs/cmdio"
|
||||
"github.com/databricks/databricks-sdk-go/service/catalog"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func listOverride(listCmd *cobra.Command) {
|
||||
func listOverride(listCmd *cobra.Command, listReq *catalog.ListExternalLocationsRequest) {
|
||||
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
||||
{{header "Name"}} {{header "Credential"}} {{header "URL"}}
|
||||
{{range .}}{{.Name|green}} {{.CredentialName|cyan}} {{.Url}}
|
||||
|
|
|
@ -2,10 +2,11 @@ package storage_credentials
|
|||
|
||||
import (
|
||||
"github.com/databricks/cli/libs/cmdio"
|
||||
"github.com/databricks/databricks-sdk-go/service/catalog"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func listOverride(listCmd *cobra.Command) {
|
||||
func listOverride(listCmd *cobra.Command, listReq *catalog.ListStorageCredentialsRequest) {
|
||||
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
||||
{{header "ID"}} {{header "Name"}} {{header "Credentials"}}
|
||||
{{range .}}{{.Id|green}} {{.Name|cyan}} {{if .AwsIamRole}}{{.AwsIamRole.RoleArn}}{{end}}{{if .AzureServicePrincipal}}{{.AzureServicePrincipal.ApplicationId}}{{end}}{{if .DatabricksGcpServiceAccount}}{{.DatabricksGcpServiceAccount.Email}}{{end}}
|
||||
|
|
Loading…
Reference in New Issue