github.com/rakutentech/cli@v6.12.5-0.20151006231303-24468b65536e+incompatible/commands_loader/commands_loader.go (about)

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