Skip to content

Commit 68bca01

Browse files
committed
Remove useless new lines in usage
Signed-off-by: Marc Khouzam <marc.khouzam@broadcom.com>
1 parent ef98a9c commit 68bca01

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

command/v7/delete_orphaned_routes_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package v7
33
type DeleteOrphanedRoutesCommand struct {
44
BaseCommand
55

6-
usage interface{} `usage:"CF_NAME delete-orphaned-routes [-f]\n"`
6+
usage interface{} `usage:"CF_NAME delete-orphaned-routes [-f]"`
77
Force bool `short:"f" description:"Force deletion without confirmation"`
88
relatedCommands interface{} `related_commands:"delete-route, routes"`
99
}

command/v7/delete_service_broker_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type DeleteServiceBrokerCommand struct {
99
BaseCommand
1010

1111
RequiredArgs flag.ServiceBroker `positional-args:"yes"`
12-
usage interface{} `usage:"CF_NAME delete-service-broker SERVICE_BROKER [-f]\n\n"`
12+
usage interface{} `usage:"CF_NAME delete-service-broker SERVICE_BROKER [-f]"`
1313
Force bool `short:"f" description:"Force deletion without confirmation"`
1414
relatedCommands interface{} `related_commands:"delete-service, purge-service-offering, service-brokers"`
1515
}

command/v7/update_buildpack_command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"code.cloudfoundry.org/cli/v9/actor/v7action"
88
"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccerror"
99
"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccv3"
10-
"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccversion"
10+
"code.cloudfoundry.org/cli/v9/api/cloudcontroller/ccversion"
1111
"code.cloudfoundry.org/cli/v9/command"
1212
"code.cloudfoundry.org/cli/v9/command/flag"
1313
"code.cloudfoundry.org/cli/v9/command/translatableerror"
@@ -28,7 +28,7 @@ type UpdateBuildpackCommand struct {
2828
BaseCommand
2929

3030
RequiredArgs flag.BuildpackName `positional-args:"Yes"`
31-
usage interface{} `usage:"CF_NAME update-buildpack BUILDPACK [-p PATH | -s STACK | --assign-stack NEW_STACK] [-i POSITION] [--rename NEW_NAME] [--enable|--disable] [--lock|--unlock]\n\nTIP:\nWhen using the 'buildpack' lifecycle type, Path should be a zip file, a url to a zip file, or a local directory. When using the 'cnb' lifecycle, Path should be a cnb file or gzipped oci image. Position is a positive integer, sets priority, and is sorted from lowest to highest.\n\nUse '--assign-stack' with caution. Associating a buildpack with a stack that it does not support may result in undefined behavior. Additionally, changing this association once made may require a local copy of the buildpack.\n\n"`
31+
usage interface{} `usage:"CF_NAME update-buildpack BUILDPACK [-p PATH | -s STACK | --assign-stack NEW_STACK] [-i POSITION] [--rename NEW_NAME] [--enable|--disable] [--lock|--unlock]\n\nTIP:\nWhen using the 'buildpack' lifecycle type, Path should be a zip file, a url to a zip file, or a local directory. When using the 'cnb' lifecycle, Path should be a cnb file or gzipped oci image. Position is a positive integer, sets priority, and is sorted from lowest to highest.\n\nUse '--assign-stack' with caution. Associating a buildpack with a stack that it does not support may result in undefined behavior. Additionally, changing this association once made may require a local copy of the buildpack."`
3232
relatedCommands interface{} `related_commands:"buildpacks, create-buildpack, delete-buildpack"`
3333
NewStack string `long:"assign-stack" description:"Assign a stack to a buildpack that does not have a stack association"`
3434
Disable bool `long:"disable" description:"Disable the buildpack from being used for staging"`

0 commit comments

Comments
 (0)