forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy_source_command.go
29 lines (24 loc) · 1.38 KB
/
copy_source_command.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package v2
import (
"os"
"code.cloudfoundry.org/cli/cf/cmd"
"code.cloudfoundry.org/cli/command"
"code.cloudfoundry.org/cli/command/flag"
)
type CopySourceCommand struct {
RequiredArgs flag.CopySourceArgs `positional-args:"yes"`
NoRestart bool `long:"no-restart" description:"Override restart of the application in target environment after copy-source completes"`
Organization string `short:"o" description:"Org that contains the target application"`
Space string `short:"s" description:"Space that contains the target application"`
usage interface{} `usage:"CF_NAME copy-source SOURCE_APP TARGET_APP [-s TARGET_SPACE [-o TARGET_ORG]] [--no-restart]"`
relatedCommands interface{} `related_commands:"apps, push, restart, target"`
envCFStagingTimeout interface{} `environmentName:"CF_STAGING_TIMEOUT" environmentDescription:"Max wait time for buildpack staging, in minutes" environmentDefault:"15"`
envCFStartupTimeout interface{} `environmentName:"CF_STARTUP_TIMEOUT" environmentDescription:"Max wait time for app instance startup, in minutes" environmentDefault:"5"`
}
func (CopySourceCommand) Setup(config command.Config, ui command.UI) error {
return nil
}
func (CopySourceCommand) Execute(args []string) error {
cmd.Main(os.Getenv("CF_TRACE"), os.Args)
return nil
}