github.com/dcarley/cf-cli@v6.24.1-0.20170220111324-4225ff346898+incompatible/command/v2/create_app_manifest_command.go (about) 1 package v2 2 3 import ( 4 "os" 5 6 flags "github.com/jessevdk/go-flags" 7 8 "code.cloudfoundry.org/cli/cf/cmd" 9 "code.cloudfoundry.org/cli/command" 10 "code.cloudfoundry.org/cli/command/flag" 11 ) 12 13 type CreateAppManifestCommand struct { 14 RequiredArgs flag.AppName `positional-args:"yes"` 15 FilePath flags.Filename `short:"p" description:"Specify a path for file creation. If path not specified, manifest file is created in current working directory."` 16 usage interface{} `usage:"CF_NAME create-app-manifest APP_NAME [-p /path/to/<app-name>-manifest.yml]"` 17 relatedCommands interface{} `related_commands:"apps, push"` 18 } 19 20 func (_ CreateAppManifestCommand) Setup(config command.Config, ui command.UI) error { 21 return nil 22 } 23 24 func (_ CreateAppManifestCommand) Execute(args []string) error { 25 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 26 return nil 27 }