mirror of https://github.com/databricks/cli.git
11 lines
324 B
Go
11 lines
324 B
Go
package users
|
|
|
|
import "github.com/databricks/cli/libs/cmdio"
|
|
|
|
func init() {
|
|
listReq.Attributes = "id,userName,groups,active"
|
|
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{range .}}{{.Id|green}} {{.UserName}} {{range .Groups}}{{.Display}} {{end}} {{if .Active}}{{"ACTIVE"|green}}{{else}}DISABLED{{end}}
|
|
{{end}}`)
|
|
}
|