From ddd102504cc7d3a9bc2afab491ff7acf6da56a6d Mon Sep 17 00:00:00 2001 From: Emilio Del Tessandoro Date: Mon, 30 Nov 2026 11:48:46 +0100 Subject: [PATCH 1/4] docs(serverless): shorten the volumes command help The volumes group and its subcommands carried several times more help text than the other serverless groups. Cut each to a one-line purpose, the facts a user needs to run it and one example, and each flag to a short clause. The group stays hidden. --- internal/cmd/serverless/volumes.go | 5 +- internal/cmd/serverless/volumes_manage.go | 189 +++++------------- .../cmd/serverless/volumes_manage_test.go | 7 +- internal/cmd/serverless/volumes_test.go | 4 +- internal/volumes/put/help.go | 44 +--- internal/volumes/put/put_test.go | 11 +- internal/volumes/put/walk.go | 2 + 7 files changed, 71 insertions(+), 191 deletions(-) diff --git a/internal/cmd/serverless/volumes.go b/internal/cmd/serverless/volumes.go index ddc774c..53560e5 100644 --- a/internal/cmd/serverless/volumes.go +++ b/internal/cmd/serverless/volumes.go @@ -147,9 +147,8 @@ func newVolumesPutCmd(logger *log.Logger) *cobra.Command { return printPutSummary(cmd.OutOrStdout(), cmdutil.FormatFor(cmd), summary) }, } - cmd.Flags().StringVar(&to, toFlag, "", "Directory in the Volume the paths land under (default the Volume root)") - cmd.Flags().IntVar(&concurrency, concurrencyFlag, put.DefaultParallelism, - fmt.Sprintf("Parts to upload at once (1-%d); each part in flight holds about 1 MiB of memory", put.MaxParallelism)) + cmd.Flags().StringVar(&to, toFlag, "", "Volume directory to upload under (default the root)") + cmd.Flags().IntVar(&concurrency, concurrencyFlag, put.DefaultParallelism, fmt.Sprintf("Parts to upload at once (1-%d)", put.MaxParallelism)) addVolumeEnvironmentFlag(cmd, logger) return cmd } diff --git a/internal/cmd/serverless/volumes_manage.go b/internal/cmd/serverless/volumes_manage.go index 2b96122..b11f944 100644 --- a/internal/cmd/serverless/volumes_manage.go +++ b/internal/cmd/serverless/volumes_manage.go @@ -28,34 +28,15 @@ const ( var errNothingToUpdateOnVolume = errors.New("nothing to update; pass --description or --clear description") // volumesHelpLong is the help of the volumes group. -const volumesHelpLong = `Manage Shared Volumes: named, durable sets of files that apps mount. +const volumesHelpLong = `Manage Shared Volumes: named sets of files that apps mount read-only. -Shared Volumes are in beta. These commands need Shared Volumes enabled for the -organization, which 'volumes settings' shows, and they may change before general -availability. +Create a Volume with 'volumes create', upload files with 'volumes put', then +mount it into an app with 'deploy --mount'. Workers mount the Volume's latest +files when they start. A Volume belongs to one environment (--env) and is not +the node-local folder 'deploy --volume' declares. -A Volume belongs to one environment, and only apps in that environment mount -it. Every command here except 'settings' takes --env to select that -environment, else the default environment (RUNWARE_ENV, else the config's) or -production. - -The lifecycle: - - 1. 'volumes create' makes an empty Volume. No app is needed. - 2. 'volumes put' uploads files into it. Uploads are additive: they add or - replace the paths they name and keep every other file. - 3. 'deploy --mount' mounts it into an app. - -A Volume has one set of files, its latest files. Workers mount the latest -files when they start; running workers keep theirs until they stop. Rolling an -app back does not bring back older files. To start clean, create a new Volume. - -A Shared Volume is not the node-local folder 'deploy --volume' declares: that -folder lives on one machine, while a Volume is stored by the platform and -mounted wherever the app's workers run. - -Deleting a Volume is logical: it stops new mounts at once, and the platform -may reclaim the stored bytes later.` +These commands are in beta and need Shared Volumes enabled for the +organization; 'volumes settings' shows whether they are.` // addVolumeEnvironmentFlag registers --env on a Volume command that addresses // one environment. @@ -65,18 +46,11 @@ func addVolumeEnvironmentFlag(cmd *cobra.Command, logger *log.Logger) { func newVolumesListCmd(logger *log.Logger) *cobra.Command { cmd := &cobra.Command{ - Use: connectorsListUse, - Short: "List Volumes", - Long: `List every Volume in one environment, newest first, following every page. - -The table shows sizes in binary units and short ids; --format json or yaml -prints the API objects with sizes in bytes and full ids.`, - Example: ` # list the Volumes of the default environment (production unless set) - runware serverless volumes list - - # list the staging Volumes as JSON - runware serverless volumes list --env staging --format json`, - Args: cobra.NoArgs, + Use: connectorsListUse, + Short: "List Volumes", + Long: `List the Volumes in one environment, newest first.`, + Example: ` runware serverless volumes list --env staging`, + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { spin := cmdutil.NewSpinner("Fetching Volumes...") spin.Start() @@ -101,18 +75,11 @@ func newVolumesCreateCmd(logger *log.Logger) *cobra.Command { var description string cmd := &cobra.Command{ - Use: "create ", - Short: "Create a Volume", - Long: `Create an empty Volume in one environment. - -The name is unique among the environment's Volumes and never changes. Fill the -Volume with 'volumes put', then mount it with 'deploy --mount'.`, - Example: ` # create a Volume in the default environment (production unless set) - runware serverless volumes create model-weights - - # create one in staging with a description - runware serverless volumes create model-weights --env staging --description "SDXL base and refiner weights"`, - Args: volumeNameArg, + Use: "create ", + Short: "Create a Volume", + Long: `Create an empty Volume. Upload files to it with 'volumes put'.`, + Example: ` runware serverless volumes create model-weights --description "SDXL weights"`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { body := serverlessapi.VolumeCreate{ Name: args[0], @@ -141,7 +108,7 @@ Volume with 'volumes put', then mount it with 'deploy --mount'.`, }) }, } - cmd.Flags().StringVar(&description, descriptionFlag, "", "Free-text description, at most 1024 characters") + cmd.Flags().StringVar(&description, descriptionFlag, "", "Description, at most 1024 characters") addVolumeEnvironmentFlag(cmd, logger) return cmd } @@ -150,19 +117,10 @@ func newVolumesShowCmd(logger *log.Logger) *cobra.Command { cmd := &cobra.Command{ Use: "show ", Short: "Show a Volume", - Long: `Show a Volume: its size, file count, the digest of its latest file list, -and the app versions that use it. - -The digest changes exactly when the latest files change, so comparing it tells -whether they did. It is not an id: nothing accepts it. - ---format json or yaml prints the API's Volume object; 'volumes references' -prints the uses on their own.`, - Example: ` runware serverless volumes show model-weights - - # the staging Volume as JSON - runware serverless volumes show model-weights --env staging --format json`, - Args: volumeNameArg, + Long: `Show a Volume: its size, file count, the digest of its latest files and the +app versions that use it.`, + Example: ` runware serverless volumes show model-weights`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { name := args[0] @@ -208,19 +166,11 @@ func newVolumesUpdateCmd(logger *log.Logger) *cobra.Command { ) cmd := &cobra.Command{ - Use: "update ", - Short: "Update a Volume's description", - Long: `Change a Volume's description, the only thing about a Volume that changes -here. Its name and environment never change, and its files change only through -'volumes put'. - ---clear description removes the description.`, - Example: ` # replace the description - runware serverless volumes update model-weights --description "SDXL weights, fp16" - - # remove it - runware serverless volumes update model-weights --clear description`, - Args: volumeNameArg, + Use: "update ", + Short: "Update a Volume's description", + Long: `Change a Volume's description, or remove it with --clear description.`, + Example: ` runware serverless volumes update model-weights --description "SDXL weights, fp16"`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { name := args[0] body, err := volumeUpdateBody(cmd, description, clears) @@ -247,7 +197,7 @@ here. Its name and environment never change, and its files change only through }) }, } - cmd.Flags().StringVar(&description, descriptionFlag, "", "New free-text description, at most 1024 characters") + cmd.Flags().StringVar(&description, descriptionFlag, "", "New description, at most 1024 characters") addClearFlag(cmd, &clears, []string{descriptionField}) addVolumeEnvironmentFlag(cmd, logger) return cmd @@ -281,34 +231,16 @@ func newVolumesDeleteCmd(logger *log.Logger) *cobra.Command { cmd := &cobra.Command{ Use: "delete ", Short: "Delete a Volume", - Long: `Delete a whole Volume: its latest files and any upload still open on it. -Individual files cannot be deleted. - -The API currently deletes only a Volume that has never had files published -and that no app version uses. For any other Volume that passes the checks -below, including one that only older app versions use once that is confirmed, -it answers 501 Not Implemented and nothing is deleted. - -The command reads the Volume and its references first. A Volume that a -current app version, a deploy in progress or a running worker uses is not -deleted: the command prints those uses and fails. When only older app -versions use it, a deletion takes their rollback, so the command names them -and asks before it goes ahead, and asks again if they change while it waits. -The API checks the uses again when the delete commits, and confirming never -overrides a current use. The delete names the Volume by the id it read, so it -never deletes a new Volume that took the name meanwhile. - -The deletion is logical. New mounts of the Volume stop at once, and the -platform may reclaim its stored bytes later. A new Volume with the same name -is a different Volume, and never satisfies a mount of this one. + Long: `Delete a Volume. A Volume that a current app version, a deploy or a running +worker uses is not deleted; when only older app versions use it, the command +asks first, since they lose their rollback. -Confirmation is required unless --yes or --force is passed.`, - Example: ` # delete a Volume (prompts for confirmation) - runware serverless volumes delete model-weights +For now the API deletes only a Volume that has never had files published and +that no app version uses; for any other it answers 501 Not Implemented. - # delete the staging Volume without a prompt - runware serverless volumes delete model-weights --env staging --yes`, - Args: volumeNameArg, +Confirmation is required unless --yes or --force is passed.`, + Example: ` runware serverless volumes delete model-weights --yes`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { return deleteVolume(cmd, logger, args[0], yes || force) }, @@ -461,17 +393,10 @@ func newVolumesReferencesCmd(logger *log.Logger) *cobra.Command { cmd := &cobra.Command{ Use: "references ", Short: "List what uses a Volume", - Long: `List the app versions that use a Volume, following every page. - -Current app versions, deploys in progress and running workers block a delete. -Older app versions do not, but a delete takes their rollback. The list is a -snapshot: 'volumes delete' reads it again, and the API checks again when the -delete commits.`, - Example: ` runware serverless volumes references model-weights - - # as JSON, for a script - runware serverless volumes references model-weights --format json`, - Args: volumeNameArg, + Long: `List the app versions that use a Volume: those that block 'volumes delete' +and the older versions a delete takes the rollback from.`, + Example: ` runware serverless volumes references model-weights`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { name := args[0] @@ -500,19 +425,11 @@ delete commits.`, func newVolumesFilesCmd(logger *log.Logger) *cobra.Command { cmd := &cobra.Command{ - Use: "files ", - Short: "List a Volume's latest files", - Long: `List every one of a Volume's latest files, ordered by path, following every -page. - -The listing reads file metadata only: paths, sizes, modes and digests. There is -no download. When an upload changes the files between two pages, the command -starts again, so the list always comes from one file set.`, - Example: ` runware serverless volumes files model-weights - - # every path, size in bytes and digest as JSON - runware serverless volumes files model-weights --format json`, - Args: volumeNameArg, + Use: "files ", + Short: "List a Volume's latest files", + Long: `List a Volume's latest files by path, with their sizes, modes and digests.`, + Example: ` runware serverless volumes files model-weights`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { name := args[0] @@ -541,17 +458,11 @@ starts again, so the list always comes from one file set.`, func newVolumesSettingsCmd(logger *log.Logger) *cobra.Command { return &cobra.Command{ - Use: "settings", - Short: "Show the organization's Shared Volume access and limits", - Long: `Show whether Shared Volumes are enabled for the organization, and the -effective limits that apply to every environment. - -Settings belong to the organization, so this command takes no --env.`, - Example: ` runware serverless volumes settings - - # limits in bytes, for a script - runware serverless volumes settings --format json`, - Args: cobra.NoArgs, + Use: "settings", + Short: "Show the organization's Shared Volume access and limits", + Long: `Show whether Shared Volumes are enabled for the organization, and its limits.`, + Example: ` runware serverless volumes settings`, + Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, _ []string) error { spin := cmdutil.NewSpinner("Fetching Shared Volume settings...") spin.Start() diff --git a/internal/cmd/serverless/volumes_manage_test.go b/internal/cmd/serverless/volumes_manage_test.go index 4177685..44bba1c 100644 --- a/internal/cmd/serverless/volumes_manage_test.go +++ b/internal/cmd/serverless/volumes_manage_test.go @@ -274,12 +274,13 @@ func TestVolumesGroupIsHiddenAndExplainsTheLifecycle(t *testing.T) { if !cmd.Hidden { t.Fatal("volumes is visible before release") } - for _, want := range []string{"beta", "Shared Volumes enabled", "volumes create", "volumes put", "deploy --mount", "additive", "latest files", "does not bring back older files", "create a new Volume", "deploy --volume"} { - if !strings.Contains(cmd.Long, want) { + long := oneLine(cmd.Long) + for _, want := range []string{"beta", "Shared Volumes enabled", "volumes create", "volumes put", "deploy --mount", "read-only", "latest files when they start", "deploy --volume"} { + if !strings.Contains(long, want) { t.Errorf("group help missing %q", want) } } - lower := strings.ToLower(cmd.Long) + lower := strings.ToLower(long) for _, promise := range []string{"download", "version history", "delete a file", "delete files"} { if strings.Contains(lower, promise) { t.Errorf("group help promises %q", promise) diff --git a/internal/cmd/serverless/volumes_test.go b/internal/cmd/serverless/volumes_test.go index 5f8cbc1..cb34d4d 100644 --- a/internal/cmd/serverless/volumes_test.go +++ b/internal/cmd/serverless/volumes_test.go @@ -244,8 +244,8 @@ func TestVolumesPutHelpDescribesAdditiveUploads(t *testing.T) { if err != nil { t.Fatal(err) } - help := strings.ToLower(cmd.Long) - for _, want := range []string{"additive", "workers that start after an upload get the new files", "rolling an app back", "create a new volume", "run the same command again to continue the upload", "organization id", `"organization: "`, "top level of ~/.runware/config.yaml (config set cannot set it)", strings.ToLower(config.OrganizationFromEnvVar), "--" + concurrencyFlag} { + help := strings.ToLower(oneLine(cmd.Long)) + for _, want := range []string{"additive", "run the same command again to resume", "organization id", `"organization: "`, "~/.runware/config.yaml", strings.ToLower(config.OrganizationFromEnvVar)} { if !strings.Contains(help, want) { t.Errorf("help does not say %q", want) } diff --git a/internal/volumes/put/help.go b/internal/volumes/put/help.go index a28f704..bb91b5b 100644 --- a/internal/volumes/put/help.go +++ b/internal/volumes/put/help.go @@ -4,44 +4,16 @@ import "github.com/runware/runware-cli/internal/config" // Help text of volumes put: additive uploads, and no promise to delete. const ( - escapingSymlinkAdvice = "remove the link or replace it with a copy of its target" - HelpShort = "Upload files and directories to a Volume" - HelpLong = `Upload local files and directories to a Volume. - -put needs your organization id. Copy it from the Runware console, then either set the -` + config.OrganizationFromEnvVar + ` environment variable or add the line "organization: " at the -top level of ~/.runware/config.yaml (config set cannot set it). - -Uploads are additive. The paths you give are added to the Volume's latest files, or -replace the file already at the same path; files you do not name stay as they are. A -directory's files keep their paths relative to the directory, under --to when you give -it and at the Volume root otherwise. Links inside a directory must point to files -within it. If a link points outside the local directory, ` + escapingSymlinkAdvice + `. - -Workers that start after an upload get the new files. Workers that are already running -keep the files they started with. - -Rolling an app back re-applies its earlier image, not earlier Volume files. To go -back to older files, upload them again. - -To start from an empty set of files, create a new Volume and upload into it. - -Content the organization already stores is never sent again, so repeating an upload -that changes nothing sends no bytes. A file must not change while it uploads: if one -does, put stops, names the file and publishes nothing. - -put sends up to --concurrency parts at once, one connection each. Each part streams -from the file, so a part in flight holds about 1 MiB of memory. - -If put is interrupted, run the same command again to continue the upload. Parts -whose acknowledgements were saved are skipped. If a file changed, put aborts the -saved upload. Run the command again to start a new session.` + HelpLong = `Upload local files and directories to a Volume. Uploads are additive: each +file adds or replaces the file at its path, and other files stay. A directory's +files keep their relative paths, under --to when given. If put is interrupted, +run the same command again to resume. - HelpExample = ` # upload a directory to the root of a Volume - runware serverless volumes put model-weights ./weights +put needs your organization id from the Runware console: set +` + config.OrganizationFromEnvVar + ` or add the top-level line "organization: " to +~/.runware/config.yaml.` - # add one file under a directory in the Volume - runware serverless volumes put model-weights ./tokenizer.json --to tokenizer` + HelpExample = ` runware serverless volumes put model-weights ./weights` ) diff --git a/internal/volumes/put/put_test.go b/internal/volumes/put/put_test.go index a483d95..f0d16b8 100644 --- a/internal/volumes/put/put_test.go +++ b/internal/volumes/put/put_test.go @@ -520,22 +520,17 @@ func TestPutSummaryJSON(t *testing.T) { func TestPutHelpText(t *testing.T) { t.Parallel() help := strings.Join(strings.Fields(HelpShort+" "+HelpLong+" "+HelpExample), " ") - const localLinkAdvice = "If a link points outside the local directory, remove the link or replace it with a copy of its target." for _, want := range []string{ "Uploads are additive", - "files you do not name stay as they are", - "Workers that start after an upload get the new files", - "Rolling an app back re-applies its earlier image, not earlier Volume files", - "Links inside a directory must point to files within it", - localLinkAdvice, - "create a new Volume", + "adds or replaces the file at its path, and other files stay", + "run the same command again to resume", } { if !strings.Contains(help, want) { t.Errorf("help lacks %q", want) } } for _, banned := range []string{"delet", "remov", "prune", "sync"} { - if strings.Contains(strings.ToLower(strings.ReplaceAll(help, localLinkAdvice, "")), banned) { + if strings.Contains(strings.ToLower(help), banned) { t.Errorf("help mentions %q, which reads as a promise to take files out of a Volume", banned) } } diff --git a/internal/volumes/put/walk.go b/internal/volumes/put/walk.go index 5224172..74ec9a1 100644 --- a/internal/volumes/put/walk.go +++ b/internal/volumes/put/walk.go @@ -15,6 +15,8 @@ import ( const ( maxTargetBytes = 4096 + // escapingSymlinkAdvice says how to fix a link that points outside an uploaded directory. + escapingSymlinkAdvice = "remove the link or replace it with a copy of its target" // modeMask keeps the read and execute bits, the only ones a Volume file mode holds. modeMask = 0o555 ) From cf9d343d54b22f409e5b399355800f2878623c82 Mon Sep 17 00:00:00 2001 From: Emilio Del Tessandoro Date: Mon, 30 Nov 2026 12:58:52 +0100 Subject: [PATCH 2/4] docs(serverless): say again that a rollback keeps the latest Volume files Rolling an app back does not restore older Volume files, and no command removes a file, so the group help keeps the sentence that says so and points at a new Volume for a clean start. --- internal/cmd/serverless/volumes_manage.go | 7 +++++-- internal/cmd/serverless/volumes_manage_test.go | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/cmd/serverless/volumes_manage.go b/internal/cmd/serverless/volumes_manage.go index b11f944..534ed59 100644 --- a/internal/cmd/serverless/volumes_manage.go +++ b/internal/cmd/serverless/volumes_manage.go @@ -32,8 +32,11 @@ const volumesHelpLong = `Manage Shared Volumes: named sets of files that apps mo Create a Volume with 'volumes create', upload files with 'volumes put', then mount it into an app with 'deploy --mount'. Workers mount the Volume's latest -files when they start. A Volume belongs to one environment (--env) and is not -the node-local folder 'deploy --volume' declares. +files when they start. Rolling an app back does not bring back older files. To +start clean, create a new Volume. + +A Volume belongs to one environment (--env) and is not the node-local folder +'deploy --volume' declares. These commands are in beta and need Shared Volumes enabled for the organization; 'volumes settings' shows whether they are.` diff --git a/internal/cmd/serverless/volumes_manage_test.go b/internal/cmd/serverless/volumes_manage_test.go index 44bba1c..a19a1e8 100644 --- a/internal/cmd/serverless/volumes_manage_test.go +++ b/internal/cmd/serverless/volumes_manage_test.go @@ -275,7 +275,7 @@ func TestVolumesGroupIsHiddenAndExplainsTheLifecycle(t *testing.T) { t.Fatal("volumes is visible before release") } long := oneLine(cmd.Long) - for _, want := range []string{"beta", "Shared Volumes enabled", "volumes create", "volumes put", "deploy --mount", "read-only", "latest files when they start", "deploy --volume"} { + for _, want := range []string{"beta", "Shared Volumes enabled", "volumes create", "volumes put", "deploy --mount", "read-only", "latest files when they start", "does not bring back older files", "create a new Volume", "deploy --volume"} { if !strings.Contains(long, want) { t.Errorf("group help missing %q", want) } From 2f656ee741a1d80999da22c22457021cf7748b1d Mon Sep 17 00:00:00 2001 From: Emilio Del Tessandoro Date: Mon, 30 Nov 2026 12:58:57 +0100 Subject: [PATCH 3/4] docs(serverless): show the prompting form first in the volumes delete example The delete asks before it takes the rollback of older app versions, and --yes skips that question, so the example leads with the form that asks, as apps delete does. --- internal/cmd/serverless/volumes_manage.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/cmd/serverless/volumes_manage.go b/internal/cmd/serverless/volumes_manage.go index 534ed59..de1f5c9 100644 --- a/internal/cmd/serverless/volumes_manage.go +++ b/internal/cmd/serverless/volumes_manage.go @@ -242,8 +242,12 @@ For now the API deletes only a Volume that has never had files published and that no app version uses; for any other it answers 501 Not Implemented. Confirmation is required unless --yes or --force is passed.`, - Example: ` runware serverless volumes delete model-weights --yes`, - Args: volumeNameArg, + Example: ` # delete a Volume (prompts for confirmation) + runware serverless volumes delete model-weights + + # skip the confirmation prompt + runware serverless volumes delete model-weights --yes`, + Args: volumeNameArg, RunE: func(cmd *cobra.Command, args []string) error { return deleteVolume(cmd, logger, args[0], yes || force) }, From 20bdb06edebfd6cd9a493c974eb1d2a6531acbb8 Mon Sep 17 00:00:00 2001 From: Emilio Del Tessandoro Date: Mon, 30 Nov 2026 12:59:02 +0100 Subject: [PATCH 4/4] test(serverless): collapse line wrapping in the volumes delete help test The test matched the raw help text, so rewrapping a phrase across two lines would fail the positive checks and silently pass the negative one. The group and put help tests already collapse it. --- internal/cmd/serverless/volumes_manage_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/serverless/volumes_manage_test.go b/internal/cmd/serverless/volumes_manage_test.go index a19a1e8..a3bbb77 100644 --- a/internal/cmd/serverless/volumes_manage_test.go +++ b/internal/cmd/serverless/volumes_manage_test.go @@ -983,7 +983,7 @@ func TestVolumesFilesKeepsTheRetryAdviceAfterStaleCursors(t *testing.T) { } func TestVolumesDeleteHelpSaysWhichVolumesTheAPIDeletes(t *testing.T) { - long := newVolumesDeleteCmd(log.New(io.Discard)).Long + long := oneLine(newVolumesDeleteCmd(log.New(io.Discard)).Long) requireOutput(t, long, "never had files published", "no app version uses", "501 Not Implemented") if strings.Contains(long, "can be deleted") { t.Fatalf("help still says a Volume older versions use can be deleted:\n%s", long)