{"modulePath":"github.com/randomtask1155/cli","version":"v6.41.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package internal\n\n## Variables\n\n```go\nvar CommonHelpCategoryList = []HelpCategory{\n\t{\n\t\tCategoryName: \"Before getting started:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"config\", \"login\", \"target\"},\n\t\t\t{\"help\", \"logout\", \"\"},\n\t\t},\n\t},\n\n\t{\n\t\tCategoryName: \"Application lifecycle:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"apps\", \"run-task\", \"events\"},\n\t\t\t{\"push\", \"logs\", \"set-env\"},\n\t\t\t{\"start\", \"ssh\", \"create-app-manifest\"},\n\t\t\t{\"stop\", \"app\", \"delete\"},\n\t\t\t{\"restart\", \"env\", \"\"},\n\t\t\t{\"restage\", \"scale\", \"\"},\n\t\t},\n\t},\n\n\t{\n\t\tCategoryName: \"Services integration:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"marketplace\", \"create-user-provided-service\"},\n\t\t\t{\"services\", \"update-user-provided-service\"},\n\t\t\t{\"create-service\", \"create-service-key\"},\n\t\t\t{\"update-service\", \"delete-service-key\"},\n\t\t\t{\"delete-service\", \"service-keys\"},\n\t\t\t{\"service\", \"service-key\"},\n\t\t\t{\"bind-service\", \"bind-route-service\"},\n\t\t\t{\"unbind-service\", \"unbind-route-service\"},\n\t\t},\n\t},\n\n\t{\n\t\tCategoryName: \"Route and domain management:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"routes\", \"delete-route\", \"create-domain\"},\n\t\t\t{\"domains\", \"map-route\", \"\"},\n\t\t\t{\"create-route\", \"unmap-route\", \"\"},\n\t\t},\n\t},\n\n\t{\n\t\tCategoryName: \"Space management:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"spaces\", \"create-space\", \"set-space-role\"},\n\t\t\t{\"space-users\", \"delete-space\", \"unset-space-role\"},\n\t\t},\n\t},\n\n\t{\n\t\tCategoryName: \"Org management:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"orgs\", \"set-org-role\"},\n\t\t\t{\"org-users\", \"unset-org-role\"},\n\t\t},\n\t},\n\n\t{\n\t\tCategoryName: \"CLI plugin management:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"plugins\", \"add-plugin-repo\", \"repo-plugins\"},\n\t\t\t{\"install-plugin\", \"list-plugin-repos\", \"\"},\n\t\t},\n\t},\n}\n```\n\n```go\nvar ExperimentalHelpCategoryList = []HelpCategory{\n\t{\n\t\tCategoryName: \"APPS (experimental):\",\n\t\tCommandList: [][]string{\n\t\t\t{\"v3-apps\", \"v3-create-app\"},\n\t\t\t{\"v3-push\", \"v3-scale\", \"v3-delete\"},\n\t\t\t{\"v3-start\", \"v3-stop\", \"v3-restart\", \"v3-stage\", \"v3-restart-app-instance\", \"v3-apply-manifest\"},\n\t\t\t{\"v3-droplets\", \"v3-set-droplet\"},\n\t\t\t{\"v3-env\", \"v3-set-env\", \"v3-unset-env\"},\n\t\t\t{\"v3-get-health-check\", \"v3-set-health-check\"},\n\t\t\t{\"v3-packages\", \"v3-create-package\"},\n\t\t\t{\"v3-ssh\"},\n\t\t},\n\t},\n}\n```\n\n```go\nvar HelpCategoryList = []HelpCategory{\n\t{\n\t\tCategoryName: \"GETTING STARTED:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"help\", \"version\", \"login\", \"logout\", \"passwd\", \"target\"},\n\t\t\t{\"api\", \"auth\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"APPS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"apps\", \"app\"},\n\t\t\t{\"push\", \"scale\", \"delete\", \"rename\"},\n\t\t\t{\"start\", \"stop\", \"restart\", \"restage\", \"restart-app-instance\"},\n\t\t\t{\"run-task\", \"tasks\", \"terminate-task\"},\n\t\t\t{\"events\", \"files\", \"logs\"},\n\t\t\t{\"env\", \"set-env\", \"unset-env\"},\n\t\t\t{\"stacks\", \"stack\"},\n\t\t\t{\"copy-source\", \"create-app-manifest\"},\n\t\t\t{\"get-health-check\", \"set-health-check\", \"enable-ssh\", \"disable-ssh\", \"ssh-enabled\", \"ssh\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"SERVICES:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"marketplace\", \"services\", \"service\"},\n\t\t\t{\"create-service\", \"update-service\", \"delete-service\", \"rename-service\"},\n\t\t\t{\"create-service-key\", \"service-keys\", \"service-key\", \"delete-service-key\"},\n\t\t\t{\"bind-service\", \"unbind-service\"},\n\t\t\t{\"bind-route-service\", \"unbind-route-service\"},\n\t\t\t{\"create-user-provided-service\", \"update-user-provided-service\"},\n\t\t\t{\"share-service\", \"unshare-service\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ORGS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"orgs\", \"org\"},\n\t\t\t{\"create-org\", \"delete-org\", \"rename-org\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"SPACES:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"spaces\", \"space\"},\n\t\t\t{\"create-space\", \"delete-space\", \"rename-space\"},\n\t\t\t{\"allow-space-ssh\", \"disallow-space-ssh\", \"space-ssh-allowed\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"DOMAINS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"domains\", \"create-domain\", \"delete-domain\", \"create-shared-domain\", \"delete-shared-domain\"},\n\t\t\t{\"router-groups\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ROUTES:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"routes\", \"create-route\", \"check-route\", \"map-route\", \"unmap-route\", \"delete-route\", \"delete-orphaned-routes\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"NETWORK POLICIES:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"network-policies\", \"add-network-policy\", \"remove-network-policy\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"BUILDPACKS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"buildpacks\", \"create-buildpack\", \"update-buildpack\", \"rename-buildpack\", \"delete-buildpack\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"USER ADMIN:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"create-user\", \"delete-user\"},\n\t\t\t{\"org-users\", \"set-org-role\", \"unset-org-role\"},\n\t\t\t{\"space-users\", \"set-space-role\", \"unset-space-role\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ORG ADMIN:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"quotas\", \"quota\", \"set-quota\"},\n\t\t\t{\"create-quota\", \"delete-quota\", \"update-quota\"},\n\t\t\t{\"share-private-domain\", \"unshare-private-domain\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"SPACE ADMIN:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"space-quotas\", \"space-quota\"},\n\t\t\t{\"create-space-quota\", \"update-space-quota\", \"delete-space-quota\"},\n\t\t\t{\"set-space-quota\", \"unset-space-quota\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"SERVICE ADMIN:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"service-auth-tokens\", \"create-service-auth-token\", \"update-service-auth-token\", \"delete-service-auth-token\"},\n\t\t\t{\"service-brokers\", \"create-service-broker\", \"update-service-broker\", \"delete-service-broker\", \"rename-service-broker\"},\n\t\t\t{\"migrate-service-instances\", \"purge-service-offering\", \"purge-service-instance\"},\n\t\t\t{\"service-access\", \"enable-service-access\", \"disable-service-access\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"SECURITY GROUP:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"security-group\", \"security-groups\", \"create-security-group\", \"update-security-group\", \"delete-security-group\", \"bind-security-group\", \"unbind-security-group\"},\n\t\t\t{\"bind-staging-security-group\", \"staging-security-groups\", \"unbind-staging-security-group\"},\n\t\t\t{\"bind-running-security-group\", \"running-security-groups\", \"unbind-running-security-group\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ENVIRONMENT VARIABLE GROUPS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"running-environment-variable-group\", \"staging-environment-variable-group\", \"set-staging-environment-variable-group\", \"set-running-environment-variable-group\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ISOLATION SEGMENTS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"isolation-segments\", \"create-isolation-segment\", \"delete-isolation-segment\", \"enable-org-isolation\", \"disable-org-isolation\", \"set-org-default-isolation-segment\", \"reset-org-default-isolation-segment\", \"set-space-isolation-segment\", \"reset-space-isolation-segment\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"FEATURE FLAGS:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"feature-flags\", \"feature-flag\", \"enable-feature-flag\", \"disable-feature-flag\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ADVANCED:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"curl\", \"config\", \"oauth-token\", \"ssh-code\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ADD/REMOVE PLUGIN REPOSITORY:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"add-plugin-repo\", \"remove-plugin-repo\", \"list-plugin-repos\", \"repo-plugins\"},\n\t\t},\n\t},\n\t{\n\t\tCategoryName: \"ADD/REMOVE PLUGIN:\",\n\t\tCommandList: [][]string{\n\t\t\t{\"plugins\", \"install-plugin\", \"uninstall-plugin\"},\n\t\t},\n\t},\n}\n```\n\n## Functions\n\n```go\nfunc ConvertPluginToCommandInfo(plugin configv3.PluginCommand) sharedaction.CommandInfo\n```\n\n```go\nfunc LongestCommandName(cmds map[string]sharedaction.CommandInfo, pluginCmds []configv3.PluginCommand) int\n```\n\n```go\nfunc LongestFlagWidth(flags []sharedaction.CommandFlag) int\n```\n\n## Types\n\n```go\ntype HelpCategory struct {\n\tCategoryName string\n\tCommandList  [][]string\n}\n```\n\n","path":"github.com/randomtask1155/cli/command/common/internal","name":"internal","synopsis":"","isRedistributable":true}
