mirror of https://github.com/databricks/cli.git
15 lines
484 B
Go
15 lines
484 B
Go
package workspace
|
|
|
|
import "github.com/databricks/cli/libs/cmdio"
|
|
|
|
func init() {
|
|
listReq.Path = "/"
|
|
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{header "ID"}} {{header "Type"}} {{header "Language"}} {{header "Path"}}
|
|
{{range .}}{{green "%d" .ObjectId}} {{blue "%s" .ObjectType}} {{cyan "%s" .Language}} {{.Path|cyan}}
|
|
{{end}}`)
|
|
|
|
// The export command prints the contents of the file to stdout by default.
|
|
exportCmd.Annotations["template"] = `{{.Content | b64_decode}}`
|
|
}
|