github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/command/v2/copy_source_command.go (about)

     1  package v2
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/command"
     5  	"code.cloudfoundry.org/cli/command/flag"
     6  	"code.cloudfoundry.org/cli/command/translatableerror"
     7  )
     8  
     9  type CopySourceCommand struct {
    10  	RequiredArgs        flag.CopySourceArgs `positional-args:"yes"`
    11  	NoRestart           bool                `long:"no-restart" description:"Override restart of the application in target environment after copy-source completes"`
    12  	Organization        string              `short:"o" description:"Org that contains the target application"`
    13  	Space               string              `short:"s" description:"Space that contains the target application"`
    14  	usage               interface{}         `usage:"CF_NAME copy-source SOURCE_APP TARGET_APP [-s TARGET_SPACE [-o TARGET_ORG]] [--no-restart]"`
    15  	relatedCommands     interface{}         `related_commands:"apps, push, restart, target"`
    16  	envCFStagingTimeout interface{}         `environmentName:"CF_STAGING_TIMEOUT" environmentDescription:"Max wait time for buildpack staging, in minutes" environmentDefault:"15"`
    17  	envCFStartupTimeout interface{}         `environmentName:"CF_STARTUP_TIMEOUT" environmentDescription:"Max wait time for app instance startup, in minutes" environmentDefault:"5"`
    18  }
    19  
    20  func (CopySourceCommand) Setup(config command.Config, ui command.UI) error {
    21  	return nil
    22  }
    23  
    24  func (CopySourceCommand) Execute(args []string) error {
    25  	return translatableerror.UnrefactoredCommandError{}
    26  }