diff --git a/cmd/grr/workflow.go b/cmd/grr/workflow.go index 500bca50..226ec806 100644 --- a/cmd/grr/workflow.go +++ b/cmd/grr/workflow.go @@ -316,7 +316,7 @@ func snapshotCmd(registry grizzly.Registry) *cli.Command { Args: cli.ArgsExact(1), } var opts Opts - expires := cmd.Flags().IntP("expires", "e", 0, "when the preview should expire. Default 0 (never)") + expires := cmd.Flags().IntP("expires", "e", 0, "when the snapshot should expire. Default 0 (never)") cmd.Run = func(cmd *cli.Command, args []string) error { resourceKind, folderUID, err := getOnlySpec(opts) diff --git a/docs/content/workflows.md b/docs/content/workflows.md index f66a0a1a..f6da06a9 100644 --- a/docs/content/workflows.md +++ b/docs/content/workflows.md @@ -134,7 +134,7 @@ At present, only Grafana dashboards are supported, and will print out links for snapshot that was uploaded. ```sh -$ grr preview my-lib.libsonnet +$ grr snapshot my-lib.libsonnet ``` Grafana snapshots by default do not expire. Expiration can be set via the diff --git a/pkg/grizzly/workflow.go b/pkg/grizzly/workflow.go index 85ef4c34..2a94b69b 100644 --- a/pkg/grizzly/workflow.go +++ b/pkg/grizzly/workflow.go @@ -479,7 +479,7 @@ func Snapshot(registry Registry, resources Resources, expiresSeconds int) error } snapshotHandler, ok := handler.(SnapshotHandler) if !ok { - notifier.NotSupported(resource, "preview") + notifier.NotSupported(resource, "snapshot") continue } err = snapshotHandler.Snapshot(resource, expiresSeconds)