mirror of https://github.com/databricks/cli.git
19 lines
448 B
Go
19 lines
448 B
Go
package groups
|
|
|
|
import (
|
|
"github.com/databricks/cli/libs/cmdio"
|
|
"github.com/databricks/databricks-sdk-go/service/iam"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func listOverride(listCmd *cobra.Command, listReq *iam.ListAccountGroupsRequest) {
|
|
listReq.Attributes = "id,displayName"
|
|
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{range .}}{{.Id|green}} {{.DisplayName}}
|
|
{{end}}`)
|
|
}
|
|
|
|
func init() {
|
|
listOverrides = append(listOverrides, listOverride)
|
|
}
|