mirror of https://github.com/databricks/cli.git
15 lines
502 B
Go
15 lines
502 B
Go
package jobs
|
|
|
|
import "github.com/databricks/cli/libs/cmdio"
|
|
|
|
func init() {
|
|
listCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{range .}}{{green "%d" .JobId}} {{.Settings.Name}}
|
|
{{end}}`)
|
|
|
|
listRunsCmd.Annotations["template"] = cmdio.Heredoc(`
|
|
{{"Job ID"|white}} {{"Run ID"|white}} {{"Result State"|white}} URL
|
|
{{range .}}{{green "%d" .JobId}} {{blue "%d" .RunId}} {{if eq .State.ResultState "SUCCESS"}}{{"SUCCESS"|green}}{{else}}{{red "%s" .State.ResultState}}{{end}} {{.RunPageUrl}}
|
|
{{end}}`)
|
|
}
|