readd parent path

This commit is contained in:
Nilsson 2024-12-09 18:03:40 +01:00
parent dc2cf3bc42
commit 412f336cb1
1 changed files with 9 additions and 8 deletions

View File

@ -76,6 +76,7 @@ func newCreate() *cobra.Command {
// TODO: short flags
cmd.Flags().Var(&createJson, "json", `either inline JSON string or @path/to/file.json with request body`)
cmd.Flags().StringVar(&createReq.Dashboard.ParentPath, "parent-path", createReq.Dashboard.ParentPath, `The workspace path of the folder containing the dashboard.`)
cmd.Flags().StringVar(&createReq.Dashboard.DisplayName, "display-name", createReq.Dashboard.DisplayName, `The display name of the dashboard.`)
cmd.Flags().StringVar(&createReq.Dashboard.SerializedDashboard, "serialized-dashboard", createReq.Dashboard.SerializedDashboard, `The contents of the dashboard in serialized string form.`)
cmd.Flags().StringVar(&createReq.Dashboard.WarehouseId, "warehouse-id", createReq.Dashboard.WarehouseId, `The warehouse ID used to run the dashboard.`)
@ -83,7 +84,7 @@ func newCreate() *cobra.Command {
cmd.Use = "create"
cmd.Short = `Create dashboard.`
cmd.Long = `Create dashboard.
Create a draft dashboard.`
cmd.Annotations = make(map[string]string)
@ -441,7 +442,7 @@ func newGet() *cobra.Command {
cmd.Use = "get DASHBOARD_ID"
cmd.Short = `Get dashboard.`
cmd.Long = `Get dashboard.
Get a draft dashboard.
Arguments:
@ -499,7 +500,7 @@ func newGetPublished() *cobra.Command {
cmd.Use = "get-published DASHBOARD_ID"
cmd.Short = `Get published dashboard.`
cmd.Long = `Get published dashboard.
Get the current published dashboard.
Arguments:
@ -856,7 +857,7 @@ func newMigrate() *cobra.Command {
cmd.Use = "migrate SOURCE_DASHBOARD_ID"
cmd.Short = `Migrate dashboard.`
cmd.Long = `Migrate dashboard.
Migrates a classic SQL dashboard to Lakeview.
Arguments:
@ -940,7 +941,7 @@ func newPublish() *cobra.Command {
cmd.Use = "publish DASHBOARD_ID"
cmd.Short = `Publish dashboard.`
cmd.Long = `Publish dashboard.
Publish the current draft dashboard.
Arguments:
@ -1010,7 +1011,7 @@ func newTrash() *cobra.Command {
cmd.Use = "trash DASHBOARD_ID"
cmd.Short = `Trash dashboard.`
cmd.Long = `Trash dashboard.
Trash a dashboard.
Arguments:
@ -1068,7 +1069,7 @@ func newUnpublish() *cobra.Command {
cmd.Use = "unpublish DASHBOARD_ID"
cmd.Short = `Unpublish dashboard.`
cmd.Long = `Unpublish dashboard.
Unpublish the dashboard.
Arguments:
@ -1133,7 +1134,7 @@ func newUpdate() *cobra.Command {
cmd.Use = "update DASHBOARD_ID"
cmd.Short = `Update dashboard.`
cmd.Long = `Update dashboard.
Update a draft dashboard.
Arguments: