本文整理汇总了Golang中github.com/cloudfoundry/cli/testhelpers/commands.RunCommand函数的典型用法代码示例。如果您正苦于以下问题:Golang RunCommand函数的具体用法?Golang RunCommand怎么用?Golang RunCommand使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RunCommand函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: callUnsetSpaceRole
func callUnsetSpaceRole(args []string, spaceRepo *testapi.FakeSpaceRepository, userRepo *testapi.FakeUserRepository, requirementsFactory *testreq.FakeReqFactory) (*testterm.FakeUI, bool) {
ui := &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewUnsetSpaceRole(ui, config, spaceRepo, userRepo)
passed := testcmd.RunCommand(cmd, args, requirementsFactory)
return ui, passed
}
开发者ID:tools-alexuser01,项目名称:cli,代码行数:7,代码来源:unset_space_role_test.go
示例2: callCreateServiceBroker
func callCreateServiceBroker(args []string, requirementsFactory *testreq.FakeReqFactory, serviceBrokerRepo *testapi.FakeServiceBrokerRepo) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewCreateServiceBroker(ui, config, serviceBrokerRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:7,代码来源:create_service_broker_test.go
示例3: callStop
func callStop(args []string, requirementsFactory *testreq.FakeReqFactory, appRepo api.ApplicationRepository) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewStop(ui, configRepo, appRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:GABONIA,项目名称:cli,代码行数:7,代码来源:stop_test.go
示例4: callRestart
func callRestart(args []string, requirementsFactory *testreq.FakeReqFactory, starter ApplicationStarter, stopper ApplicationStopper) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
cmd := NewRestart(ui, starter, stopper)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:nandrah,项目名称:cli,代码行数:7,代码来源:restart_test.go
示例5: callPassword
func callPassword(inputs []string, deps passwordDeps) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{Inputs: inputs}
cmd := NewPassword(ui, deps.PwdRepo, deps.Config)
testcmd.RunCommand(cmd, []string{}, deps.ReqFactory)
return
}
开发者ID:hail100,项目名称:cli,代码行数:7,代码来源:passwd_test.go
示例6: callUpdateServiceAuthToken
func callUpdateServiceAuthToken(args []string, requirementsFactory *testreq.FakeReqFactory, authTokenRepo *testapi.FakeAuthTokenRepo) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
config := testconfig.NewRepositoryWithDefaults()
cmd := NewUpdateServiceAuthToken(ui, config, authTokenRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:7,代码来源:update_service_auth_token_test.go
示例7: callDeleteOrphanedRoutes
func callDeleteOrphanedRoutes(confirmation string, args []string, reqFactory *testreq.FakeReqFactory, routeRepo *testapi.FakeRouteRepository) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{Inputs: []string{confirmation}}
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewDeleteOrphanedRoutes(ui, configRepo, routeRepo)
testcmd.RunCommand(cmd, args, reqFactory)
return
}
开发者ID:GABONIA,项目名称:cli,代码行数:7,代码来源:delete_orphaned_routes_test.go
示例8: callShowSpace
func callShowSpace(args []string, requirementsFactory *testreq.FakeReqFactory) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
config := testconfig.NewRepositoryWithDefaults()
cmd := NewShowSpace(ui, config)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:7,代码来源:space_test.go
示例9: callShareDomain
func callShareDomain(args []string, requirementsFactory *testreq.FakeReqFactory, domainRepo *testapi.FakeDomainRepository) (fakeUI *testterm.FakeUI) {
fakeUI = new(testterm.FakeUI)
configRepo := testconfig.NewRepositoryWithAccessToken(configuration.TokenInfo{Username: "my-user"})
cmd := NewCreateSharedDomain(fakeUI, configRepo, domainRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:GABONIA,项目名称:cli,代码行数:7,代码来源:create_shared_domain_test.go
示例10: callOrgUsers
func callOrgUsers(args []string, requirementsFactory *testreq.FakeReqFactory, userRepo *testapi.FakeUserRepository) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewOrgUsers(ui, config, userRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:7,代码来源:org_users_test.go
示例11: callMapRoute
func callMapRoute(args []string, requirementsFactory *testreq.FakeReqFactory, routeRepo *testapi.FakeRouteRepository, createRoute *testcmd.FakeRouteCreator) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewMapRoute(ui, configRepo, routeRepo, createRoute)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:7,代码来源:map_route_test.go
示例12: callUpdateUserProvidedService
func callUpdateUserProvidedService(args []string, requirementsFactory *testreq.FakeReqFactory, userProvidedServiceInstanceRepo api.UserProvidedServiceInstanceRepository) (fakeUI *testterm.FakeUI) {
fakeUI = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewUpdateUserProvidedService(fakeUI, config, userProvidedServiceInstanceRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:8,代码来源:update_user_provided_service_test.go
示例13: callListServiceBrokers
func callListServiceBrokers(args []string, serviceBrokerRepo *testapi.FakeServiceBrokerRepo) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewListServiceBrokers(ui, config, serviceBrokerRepo)
testcmd.RunCommand(cmd, args, &testreq.FakeReqFactory{})
return
}
开发者ID:BlueSpice,项目名称:cli,代码行数:8,代码来源:service_brokers_test.go
示例14: callApi
func callApi(args []string, config configuration.ReadWriter, endpointRepo *testapi.FakeEndpointRepo) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
cmd := NewApi(ui, config, endpointRepo)
requirementsFactory := &testreq.FakeReqFactory{}
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:GABONIA,项目名称:cli,代码行数:8,代码来源:api_test.go
示例15: callUpdateBuildpack
func callUpdateBuildpack(args []string, requirementsFactory *testreq.FakeReqFactory, fakeRepo *testapi.FakeBuildpackRepository,
fakeBitsRepo *testapi.FakeBuildpackBitsRepository) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
cmd := NewUpdateBuildpack(ui, fakeRepo, fakeBitsRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:GABONIA,项目名称:cli,代码行数:8,代码来源:update_buildpack_test.go
示例16: callLogs
func callLogs(args []string, requirementsFactory *testreq.FakeReqFactory, logsRepo *testapi.FakeLogsRepository) (ui *testterm.FakeUI) {
ui = new(testterm.FakeUI)
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewLogs(ui, configRepo, logsRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:nandrah,项目名称:cli,代码行数:8,代码来源:logs_test.go
示例17: callFiles
func callFiles(args []string, requirementsFactory *testreq.FakeReqFactory, appFilesRepo *testapi.FakeAppFilesRepo) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
configRepo := testconfig.NewRepositoryWithDefaults()
cmd := NewFiles(ui, configRepo, appFilesRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:9,代码来源:files_test.go
示例18: callUnbindService
func callUnbindService(args []string, requirementsFactory *testreq.FakeReqFactory, serviceBindingRepo api.ServiceBindingRepository) (fakeUI *testterm.FakeUI) {
fakeUI = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewUnbindService(fakeUI, config, serviceBindingRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:tools-alexuser01,项目名称:cli,代码行数:9,代码来源:unbind_service_test.go
示例19: callListServiceAuthTokens
func callListServiceAuthTokens(requirementsFactory *testreq.FakeReqFactory, authTokenRepo *testapi.FakeAuthTokenRepo) (ui *testterm.FakeUI) {
ui = &testterm.FakeUI{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewListServiceAuthTokens(ui, config, authTokenRepo)
testcmd.RunCommand(cmd, []string{}, requirementsFactory)
return
}
开发者ID:tools-alexuser01,项目名称:cli,代码行数:10,代码来源:service_auth_tokens_test.go
示例20: callRenameService
func callRenameService(args []string, requirementsFactory *testreq.FakeReqFactory) (ui *testterm.FakeUI, serviceRepo *testapi.FakeServiceRepo) {
ui = &testterm.FakeUI{}
serviceRepo = &testapi.FakeServiceRepo{}
config := testconfig.NewRepositoryWithDefaults()
cmd := NewRenameService(ui, config, serviceRepo)
testcmd.RunCommand(cmd, args, requirementsFactory)
return
}
开发者ID:palakmathur,项目名称:cli,代码行数:10,代码来源:rename_service_test.go
注:本文中的github.com/cloudfoundry/cli/testhelpers/commands.RunCommand函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论