github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/plugin/transition/run_plugin_legacy.go (about) 1 package plugin_transition 2 3 import ( 4 "os" 5 6 "code.cloudfoundry.org/cli/cf/cmd" 7 "code.cloudfoundry.org/cli/command" 8 "code.cloudfoundry.org/cli/util/configv3" 9 ) 10 11 func RunPlugin(plugin configv3.Plugin, _ command.UI) error { 12 // ugly workaround to maintain v7 api in v7 main 13 plugin = configv3.Plugin{} 14 cmd.Main(os.Getenv("CF_TRACE"), os.Args) 15 return nil 16 }