github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/cf/commandsloader/commands_loader.go (about)

     1  package commandsloader
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/cf/commands"
     5  	"code.cloudfoundry.org/cli/cf/commands/application"
     6  	"code.cloudfoundry.org/cli/cf/commands/buildpack"
     7  	"code.cloudfoundry.org/cli/cf/commands/domain"
     8  	"code.cloudfoundry.org/cli/cf/commands/environmentvariablegroup"
     9  	"code.cloudfoundry.org/cli/cf/commands/featureflag"
    10  	"code.cloudfoundry.org/cli/cf/commands/organization"
    11  	"code.cloudfoundry.org/cli/cf/commands/plugin"
    12  	"code.cloudfoundry.org/cli/cf/commands/pluginrepo"
    13  	"code.cloudfoundry.org/cli/cf/commands/quota"
    14  	"code.cloudfoundry.org/cli/cf/commands/route"
    15  	"code.cloudfoundry.org/cli/cf/commands/routergroups"
    16  	"code.cloudfoundry.org/cli/cf/commands/securitygroup"
    17  	"code.cloudfoundry.org/cli/cf/commands/service"
    18  	"code.cloudfoundry.org/cli/cf/commands/serviceaccess"
    19  	"code.cloudfoundry.org/cli/cf/commands/serviceauthtoken"
    20  	"code.cloudfoundry.org/cli/cf/commands/servicebroker"
    21  	"code.cloudfoundry.org/cli/cf/commands/servicekey"
    22  	"code.cloudfoundry.org/cli/cf/commands/space"
    23  	"code.cloudfoundry.org/cli/cf/commands/spacequota"
    24  	"code.cloudfoundry.org/cli/cf/commands/user"
    25  )
    26  
    27  /*******************
    28  This package make a reference to all the command packages
    29  in cf/commands/..., so all init() in the directories will
    30  get initialized
    31  
    32  * Any new command packages must be included here for init() to get called
    33  ********************/
    34  
    35  func Load() {
    36  	_ = commands.API{}
    37  	_ = application.ListApps{}
    38  	_ = buildpack.ListBuildpacks{}
    39  	_ = domain.CreateDomain{}
    40  	_ = environmentvariablegroup.RunningEnvironmentVariableGroup{}
    41  	_ = featureflag.ShowFeatureFlag{}
    42  	_ = organization.ListOrgs{}
    43  	_ = plugin.Plugins{}
    44  	_ = pluginrepo.RepoPlugins{}
    45  	_ = quota.CreateQuota{}
    46  	_ = route.CreateRoute{}
    47  	_ = routergroups.RouterGroups{}
    48  	_ = securitygroup.ShowSecurityGroup{}
    49  	_ = service.ShowService{}
    50  	_ = serviceauthtoken.ListServiceAuthTokens{}
    51  	_ = serviceaccess.ServiceAccess{}
    52  	_ = servicebroker.ListServiceBrokers{}
    53  	_ = servicekey.ServiceKey{}
    54  	_ = space.CreateSpace{}
    55  	_ = spacequota.SpaceQuota{}
    56  	_ = user.CreateUser{}
    57  }