github.com/elopio/cli@v6.21.2-0.20160902224010-ea909d1fdb2f+incompatible/commands/v2/copy_source_command.go (about) 1 package v2 2 3 import ( 4 "os" 5 6 "code.cloudfoundry.org/cli/cf/cmd" 7 "code.cloudfoundry.org/cli/commands" 8 "code.cloudfoundry.org/cli/commands/flags" 9 ) 10 11 type CopySourceCommand struct { 12 RequiredArgs flags.CopySourceArgs `positional-args:"yes"` 13 NoRestart bool `long:"no-restart" description:"Override restart of the application in target environment after copy-source completes"` 14 Organization string `short:"o" description:"Org that contains the target application"` 15 Space string `short:"s" description:"Space that contains the target application"` 16 usage interface{} `usage:"CF_NAME copy-source SOURCE-APP TARGET-APP [-s TARGET-SPACE [-o TARGET-ORG]] [--no-restart]\n"` 17 relatedCommands interface{} `related_commands:"apps, push, restart, target"` 18 } 19 20 func (_ CopySourceCommand) Setup(config commands.Config, ui commands.UI) error { 21 return nil 22 } 23 24 func (_ CopySourceCommand) Execute(args []string) error { 25 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 26 return nil 27 }