Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commands/blue_green_deploy_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c *BlueGreenDeployCommand) GetPluginCommand() plugin.Command {
cf bg-deploy MTA [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u URL] [-f] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names true/false] [--apply-namespace-service-names true/false] [--apply-namespace-app-routes true/false] [--apply-namespace-as-suffix true/false ] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--no-confirm] [--skip-idle-start] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]

Perform action on an active deploy operation
cf deploy -i OPERATION_ID -a ACTION [-u URL]`,
cf deploy -i OPERATION_ID -a ACTION [-u URL] ` + util.UploadEnvHelpText,
Options: map[string]string{
extDescriptorsOpt: "Extension descriptors",
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
Expand Down
3 changes: 1 addition & 2 deletions commands/deploy_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ func (c *DeployCommand) GetPluginCommand() plugin.Command {

cf deploy MTA [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u URL] [-f] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names true/false] [--apply-namespace-service-names true/false] [--apply-namespace-app-routes true/false] [--apply-namespace-as-suffix true/false ] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]


Perform action on an active deploy operation
cf deploy -i OPERATION_ID -a ACTION [-u URL]

(EXPERIMENTAL) Deploy a multi-target app archive referenced by a remote URL
<write MTA archive URL to STDOUT> | cf deploy [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u MTA_CONTROLLER_URL] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names true/false] [--apply-namespace-service-names true/false] [--apply-namespace-app-routes true/false] [--apply-namespace-as-suffix true/false ] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]`,
<write MTA archive URL to STDOUT> | cf deploy [-e EXT_DESCRIPTOR[,...]] [-t TIMEOUT] [--version-rule VERSION_RULE] [-u MTA_CONTROLLER_URL] [--retries RETRIES] [--no-start] [--namespace NAMESPACE] [--apply-namespace-app-names true/false] [--apply-namespace-service-names true/false] [--apply-namespace-app-routes true/false] [--apply-namespace-as-suffix true/false ] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--keep-files] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--strategy STRATEGY] [--skip-testing-phase] [--skip-idle-start] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]` + util.UploadEnvHelpText,

Options: map[string]string{
extDescriptorsOpt: "Extension descriptors",
Expand Down
7 changes: 4 additions & 3 deletions commands/download_mta_op_logs_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package commands
import (
"flag"
"fmt"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/mtaclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/util"
"os"
"path/filepath"
"strings"

"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/mtaclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/util"

"code.cloudfoundry.org/cli/cf/terminal"
"code.cloudfoundry.org/cli/plugin"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/baseclient"
Expand Down Expand Up @@ -43,7 +44,7 @@ func (c *DownloadMtaOperationLogsCommand) GetPluginCommand() plugin.Command {
UsageDetails: plugin.Usage{
Usage: `cf download-mta-op-logs -i OPERATION_ID [-d DIRECTORY] [-u URL]

cf download-mta-op-logs --mta MTA [--last NUM] [-d DIRECTORY] [-u URL]`,
cf download-mta-op-logs --mta MTA [--last NUM] [-d DIRECTORY] [-u URL]` + util.BaseEnvHelpText,
Options: map[string]string{
operationIDOpt: "Operation ID",
util.GetShortOption(mtaOpt): "ID of the deployed MTA",
Expand Down
11 changes: 6 additions & 5 deletions commands/mta_command.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
package commands

import (
"flag"
"fmt"
"strconv"
"strings"

"code.cloudfoundry.org/cli/cf/formatters"
"code.cloudfoundry.org/cli/cf/terminal"
"code.cloudfoundry.org/cli/plugin"
"flag"
"fmt"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/baseclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/cfrestclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/cfrestclient/resilient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/models"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/ui"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/util"
"strconv"
"strings"
)

// MtaCommand is a command for listing a deployed MTA
Expand Down Expand Up @@ -42,7 +43,7 @@ func (c *MtaCommand) GetPluginCommand() plugin.Command {
Name: "mta",
HelpText: "Display health and status for a multi-target app",
UsageDetails: plugin.Usage{
Usage: "cf mta MTA_ID [--namespace NAMESPACE] [-u URL]",
Usage: "cf mta MTA_ID [--namespace NAMESPACE] [-u URL]" + util.BaseEnvHelpText,
Options: map[string]string{
util.GetShortOption(namespaceOpt): "(EXPERIMENTAL) namespace of the requested mta, empty by default",
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
Expand Down
5 changes: 3 additions & 2 deletions commands/mta_operations_command.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package commands

import (
"flag"

"code.cloudfoundry.org/cli/cf/terminal"
"code.cloudfoundry.org/cli/plugin"
"flag"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/baseclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/models"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/mtaclient"
Expand Down Expand Up @@ -31,7 +32,7 @@ func (c *MtaOperationsCommand) GetPluginCommand() plugin.Command {
Name: "mta-ops",
HelpText: "List multi-target app operations",
UsageDetails: plugin.Usage{
Usage: "cf mta-ops [--mta MTA] [-u URL] [--last NUM] [--all]",
Usage: "cf mta-ops [--mta MTA] [-u URL] [--last NUM] [--all]" + util.BaseEnvHelpText,
Options: map[string]string{
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
util.GetShortOption(mtaOpt): "ID of the deployed package",
Expand Down
5 changes: 3 additions & 2 deletions commands/mtas_command.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package commands

import (
"flag"

"code.cloudfoundry.org/cli/cf/terminal"
"code.cloudfoundry.org/cli/plugin"
"flag"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/baseclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/ui"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/util"
Expand All @@ -27,7 +28,7 @@ func (c *MtasCommand) GetPluginCommand() plugin.Command {
Name: "mtas",
HelpText: "List all multi-target apps",
UsageDetails: plugin.Usage{
Usage: "cf mtas [-u URL]",
Usage: "cf mtas [-u URL]" + util.BaseEnvHelpText,
Options: map[string]string{
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
},
Expand Down
5 changes: 3 additions & 2 deletions commands/purge_config_command.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package commands

import (
"flag"

"code.cloudfoundry.org/cli/cf/terminal"
"code.cloudfoundry.org/cli/plugin"
"flag"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/baseclient"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/ui"
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/util"
Expand All @@ -25,7 +26,7 @@ func (c *PurgeConfigCommand) GetPluginCommand() plugin.Command {
Name: "purge-mta-config",
HelpText: "Purge no longer valid configuration entries",
UsageDetails: plugin.Usage{
Usage: "cf purge-mta-config [-u URL]",
Usage: "cf purge-mta-config [-u URL]" + util.BaseEnvHelpText,
Options: map[string]string{
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
},
Expand Down
2 changes: 1 addition & 1 deletion commands/rollback_mta_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *RollbackMtaCommand) GetPluginCommand() plugin.Command {
cf rollback-mta MTA_ID [-t TIMEOUT] [-f] [--retries RETRIES] [--namespace NAMESPACE] [--do-not-fail-on-missing-permissions] [--abort-on-error] [--apps-start-timeout TIMEOUT] [--apps-stage-timeout TIMEOUT] [--apps-upload-timeout TIMEOUT] [--apps-task-execution-timeout TIMEOUT]

Perform action on an active deploy operation
cf rollback-mta -i OPERATION_ID -a ACTION [-u URL]`,
cf rollback-mta -i OPERATION_ID -a ACTION [-u URL]` + util.BaseEnvHelpText,
Options: map[string]string{
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
operationIDOpt: "Active deploy operation ID",
Expand Down
4 changes: 2 additions & 2 deletions commands/undeploy_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/cloudfoundry-incubator/multiapps-cli-plugin/util"
)

//UndeployCommand is a command for undeploying MTAs
// UndeployCommand is a command for undeploying MTAs
type UndeployCommand struct {
*BaseCommand
processTypeProvider ProcessTypeProvider
Expand All @@ -38,7 +38,7 @@ func (c *UndeployCommand) GetPluginCommand() plugin.Command {
cf undeploy MTA_ID [-u URL] [-f] [--retries RETRIES] [--namespace NAMESPACE] [--delete-services] [--delete-service-keys] [--delete-service-brokers] [--no-restart-subscribed-apps] [--do-not-fail-on-missing-permissions] [--abort-on-error]

Perform action on an active undeploy operation
cf undeploy -i OPERATION_ID -a ACTION [-u URL]`,
cf undeploy -i OPERATION_ID -a ACTION [-u URL]` + util.BaseEnvHelpText,
Options: map[string]string{
deployServiceURLOpt: "Deploy service URL, by default 'deploy-service.<system-domain>'",
operationIDOpt: "Active undeploy operation ID",
Expand Down
13 changes: 13 additions & 0 deletions util/env_configuration_help.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package util

const BaseEnvHelpText = `

ENVIRONMENT:
DEBUG=1 Enables the logging of HTTP requests in STDOUT and STDERR.
MULTIAPPS_CONTROLLER_URL=<URL> Overrides the default deploy-service.<system-domain> with a custom URL.
`
const UploadEnvHelpText = BaseEnvHelpText + `
MULTIAPPS_UPLOAD_CHUNK_SIZE=<POSITIVE_INTEGER> Configures chunk size (in MB) for MTAR upload.
MULTIAPPS_UPLOAD_CHUNKS_SEQUENTIALLY=<BOOLEAN> Upload chunks sequentially instead of in parallel. By default is false.
MULTIAPPS_DISABLE_UPLOAD_PROGRESS_BAR=<BOOLEAN> Disable upload progress bar (useful in CI/CD). By default is false.
`