Skip to content

Commit

Permalink
docs: rename 'preview' to 'snapshot'
Browse files Browse the repository at this point in the history
This was originally changed in #391, but it seems like a few cases were missing from renaming
  • Loading branch information
mikaello authored and K-Phoen committed Nov 19, 2024
1 parent eca189d commit 44bb755
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/grr/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/grizzly/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 44bb755

Please sign in to comment.