cmd

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMatches added in v1.11.0

func FilterMatches(args, matches []string) []string

FilterMatches will check the args for the suggested matches, filtering the one already matched from the args

func FilteredMatchingFinder

func FilteredMatchingFinder(args []string, prefix string, finder func(prefix string) []string) []string

FilteredMatchingFinder uses the finder function to find the resources matching the given prefix. It then filters the matches, removing the provided args, and returns that as its result.

func NewAppChartCmd added in v1.11.0

func NewAppChartCmd(client AppchartsService) *cobra.Command

NewAppchartsCmd returns a new 'epinio app chart' command

func NewAppChartDefaultCmd added in v1.11.0

func NewAppChartDefaultCmd(client AppchartsService) *cobra.Command

NewAppChartDefaultCmd returns a new `epinio app chart default` command

func NewAppChartListCmd added in v1.11.0

func NewAppChartListCmd(client AppchartsService) *cobra.Command

NewAppChartListCmd returns a new `epinio app chart list` command

func NewAppChartShowCmd added in v1.11.0

func NewAppChartShowCmd(client AppchartsService) *cobra.Command

NewAppChartShowCmd returns a new `epinio app env show` command

func NewAppCreateCmd added in v1.11.0

func NewAppCreateCmd(client ApplicationsService) *cobra.Command

NewAppCreateCmd returns a new `epinio apps create` command

func NewAppDeleteCmd added in v1.11.0

func NewAppDeleteCmd(client ApplicationsService) *cobra.Command

NewAppDeleteCmd returns a new `epinio apps delete` command

func NewAppEnvCmd added in v1.11.0

func NewAppEnvCmd(client AppenvService) *cobra.Command

NewAppEnvCmd returns a new 'epinio app chart' command

func NewAppEnvListCmd added in v1.11.0

func NewAppEnvListCmd(client AppenvService) *cobra.Command

NewAppEnvListCmd returns a new `epinio app env list` command

func NewAppEnvSetCmd added in v1.11.0

func NewAppEnvSetCmd(client AppenvService) *cobra.Command

NewAppEnvSetCmd returns a new `epinio app env set` command

func NewAppEnvShowCmd added in v1.11.0

func NewAppEnvShowCmd(client AppenvService) *cobra.Command

NewAppEnvShowCmd returns a new `epinio app env show` command

func NewAppEnvUnsetCmd added in v1.11.0

func NewAppEnvUnsetCmd(client AppenvService) *cobra.Command

NewAppEnvUnsetCmd returns a new `epinio app env unset` command

func NewAppExecCmd added in v1.11.0

func NewAppExecCmd(client ApplicationsService) *cobra.Command

NewAppExecCmd returns a new `epinio apps exec` command

func NewAppExportCmd added in v1.11.0

func NewAppExportCmd(client ApplicationsService) *cobra.Command

NewAppExportCmd return a new `epinio apps export` command

func NewAppListCmd added in v1.11.0

func NewAppListCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command

NewAppListCmd returns a new `epinio app list` command

func NewAppLogsCmd added in v1.11.0

func NewAppLogsCmd(client ApplicationsService) *cobra.Command

NewAppLogsCmd returns a new `epinio apps logs` command

func NewAppManifestCmd added in v1.11.0

func NewAppManifestCmd(client ApplicationsService) *cobra.Command

NewAppManifestCmd returns a new `epinio apps manifest` command

func NewAppPortForwardCmd added in v1.11.0

func NewAppPortForwardCmd(client ApplicationsService) *cobra.Command

NewAppPortForwardCmd returns a new `epinio apps port-forward` command

func NewAppPushCmd added in v1.11.0

func NewAppPushCmd(client ApplicationsService) *cobra.Command

NewAppPushCmd returns a new `epinio apps push` command

func NewAppRestageCmd added in v1.11.0

func NewAppRestageCmd(client ApplicationsService) *cobra.Command

NewAppRestageCmd returns a new `epinio app restage` command

func NewAppRestartCmd added in v1.11.0

func NewAppRestartCmd(client ApplicationsService) *cobra.Command

NewAppRestartCmd returns a new `epinio app restart` command

func NewAppShowCmd added in v1.11.0

func NewAppShowCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command

NewAppShowCmd returns a new `epinio apps show` command

func NewAppUpdateCmd added in v1.11.0

func NewAppUpdateCmd(client ApplicationsService) *cobra.Command

NewAppUpdateCmd returns a new `epinio apps update` command

func NewApplicationsCmd added in v1.11.0

func NewApplicationsCmd(client ApplicationsService, rootCfg *RootConfig) *cobra.Command

NewApplicationsCmd returns a new 'epinio app' command

func NewClientSyncCmd

func NewClientSyncCmd(client *usercmd.EpinioClient) *cobra.Command

NewClientSyncCmd implements the command: epinio client-sync

func NewConfigurationBindCmd

func NewConfigurationBindCmd(client ConfigurationService) *cobra.Command

NewConfigurationBindCmd returns a new 'epinio configuration bind' command

func NewConfigurationCmd

func NewConfigurationCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command

NewConfigurationCmd returns a new 'epinio configuration' command

func NewConfigurationCreateCmd

func NewConfigurationCreateCmd(client ConfigurationService) *cobra.Command

NewConfigurationCreateCmd returns a new 'epinio configuration create' command

func NewConfigurationDeleteCmd

func NewConfigurationDeleteCmd(client ConfigurationService) *cobra.Command

NewConfigurationDeleteCmd returns a new 'epinio configuration delete' command

func NewConfigurationListCmd

func NewConfigurationListCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command

NewConfigurationListCmd returns a new 'epinio configuration list' command

func NewConfigurationShowCmd

func NewConfigurationShowCmd(client ConfigurationService, rootCfg *RootConfig) *cobra.Command

NewConfigurationShowCmd returns a new 'epinio configuration show' command

func NewConfigurationUnbindCmd

func NewConfigurationUnbindCmd(client ConfigurationService) *cobra.Command

NewConfigurationUnbindCmd returns a new 'epinio configuration unbind' command

func NewConfigurationUpdateCmd

func NewConfigurationUpdateCmd(client ConfigurationService) *cobra.Command

NewConfigurationUpdateCmd returns a new 'epinio configuration update' command

func NewExportRegistriesCmd added in v1.11.0

func NewExportRegistriesCmd(client *usercmd.EpinioClient) *cobra.Command

NewExportRegistriesCmd returns a new 'epinio info' command

func NewGitconfigCmd added in v1.11.0

func NewGitconfigCmd(client *usercmd.EpinioClient) *cobra.Command

NewGitconfigCmd returns a new 'epinio gitconfig' command

func NewGitconfigCreateCmd added in v1.11.0

func NewGitconfigCreateCmd(client *usercmd.EpinioClient) *cobra.Command

NewGitconfigCreateCmd returns a new 'epinio gitconfig create' command

func NewGitconfigDeleteCmd added in v1.11.0

func NewGitconfigDeleteCmd(client *usercmd.EpinioClient) *cobra.Command

NewGitconfigDeleteCmd returns a new 'epinio gitconfig delete' command

func NewGitconfigListCmd added in v1.11.0

func NewGitconfigListCmd(client *usercmd.EpinioClient) *cobra.Command

NewGitconfigListCmd returns a new 'epinio gitconfig list' command

func NewGitconfigShowCmd added in v1.11.0

func NewGitconfigShowCmd(client *usercmd.EpinioClient) *cobra.Command

NewGitconfigShowCmd returns a new 'epinio gitconfig delete' command

func NewInfoCmd

func NewInfoCmd(client *usercmd.EpinioClient, rootCfg *RootConfig) *cobra.Command

NewInfoCmd returns a new 'epinio info' command

func NewLoginCmd

func NewLoginCmd(client LoginService) *cobra.Command

NewLoginCmd returns a new 'epinio login' command

func NewLogoutCmd

func NewLogoutCmd(client LoginService) *cobra.Command

NewLogoutCmd returns a new 'epinio logout' command

func NewNamespaceCmd

func NewNamespaceCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command

NewNamespaceCmd returns a new 'epinio namespace' command

func NewNamespaceCreateCmd

func NewNamespaceCreateCmd(client NamespaceService) *cobra.Command

NewNamespaceCreateCmd returns a new 'epinio namespace create' command

func NewNamespaceDeleteCmd

func NewNamespaceDeleteCmd(client NamespaceService) *cobra.Command

NewNamespaceDeleteCmd returns a new 'epinio namespace delete' command

func NewNamespaceListCmd

func NewNamespaceListCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command

NewNamespaceListCmd returns a new 'epinio namespace list' command

func NewNamespaceShowCmd

func NewNamespaceShowCmd(client NamespaceService, rootCfg *RootConfig) *cobra.Command

NewNamespaceShowCmd returns a new 'epinio namespace show' command

func NewServiceBindCmd added in v1.11.0

func NewServiceBindCmd(client ServicesService) *cobra.Command

NewServiceBindCmd returns a new `epinio service bind` command

func NewServiceCatalogCmd added in v1.11.0

func NewServiceCatalogCmd(client ServicesService) *cobra.Command

NewServiceCatalogCmd returns a new `epinio service catalog` command

func NewServiceCreateCmd added in v1.11.0

func NewServiceCreateCmd(client ServicesService) *cobra.Command

NewServiceCreateCmd returns a new `epinio service create` command

func NewServiceDeleteCmd added in v1.11.0

func NewServiceDeleteCmd(client ServicesService) *cobra.Command

NewServiceDeleteCmd returns a new `epinio service delete` command

func NewServiceListCmd added in v1.11.0

func NewServiceListCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command

NewServiceListCmd returns a new `epinio service list` command

func NewServicePortForwardCmd added in v1.11.0

func NewServicePortForwardCmd(client ServicesService) *cobra.Command

NewServicePortForwardCmd returns a new `epinio service port-forward` command

func NewServiceShowCmd added in v1.11.0

func NewServiceShowCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command

NewServiceShowCmd returns a new `epinio service show` command

func NewServiceUnbindCmd added in v1.11.0

func NewServiceUnbindCmd(client ServicesService) *cobra.Command

NewServiceUnbindCmd returns a new `epinio service unbind` command

func NewServiceUpdateCmd added in v1.11.0

func NewServiceUpdateCmd(client ServicesService) *cobra.Command

func NewServicesCmd added in v1.11.0

func NewServicesCmd(client ServicesService, rootCfg *RootConfig) *cobra.Command

NewServicesCmd returns a new 'epinio services' command

func NewSettingsCmd

func NewSettingsCmd(client *usercmd.EpinioClient) *cobra.Command

NewSettingsCmd returns a new 'epinio settings' command

func NewSettingsColorsCmd

func NewSettingsColorsCmd(client *usercmd.EpinioClient) *cobra.Command

NewSettingsColorsCmd returns a new 'epinio settings colors' command

func NewSettingsShowCmd

func NewSettingsShowCmd(client *usercmd.EpinioClient) *cobra.Command

NewSettingsShowCmd returns a new 'epinio settings show' command

func NewSettingsUpdateCACmd

func NewSettingsUpdateCACmd(client *usercmd.EpinioClient) *cobra.Command

NewSettingsUpdateCACmd returns a new 'epinio settings update-ca' command

func NewTargetCmd

func NewTargetCmd(client *usercmd.EpinioClient) *cobra.Command

NewTargetCmd returns a new 'epinio target' command

func NewVersionCmd added in v1.11.0

func NewVersionCmd() *cobra.Command

NewVersionCmd returns a new 'epinio version' command

Types

type AppChartMatcher added in v1.11.0

type AppChartMatcher interface {
	GetAPI() usercmd.APIClient
	ChartMatching(toComplete string) []string
}

type AppDeleteConfig added in v1.11.0

type AppDeleteConfig struct {
	// contains filtered or unexported fields
}

type AppExecConfig added in v1.11.0

type AppExecConfig struct {
	// contains filtered or unexported fields
}

type AppExportConfig added in v1.11.0

type AppExportConfig struct {
	// contains filtered or unexported fields
}

type AppForwardConfig added in v1.11.0

type AppForwardConfig struct {
	// contains filtered or unexported fields
}

type AppListConfig added in v1.11.0

type AppListConfig struct {
	// contains filtered or unexported fields
}

type AppLogsConfig added in v1.11.0

type AppLogsConfig struct {
	// contains filtered or unexported fields
}

type AppMatcher added in v1.11.0

type AppMatcher interface {
	GetAPI() usercmd.APIClient
	AppsMatching(toComplete string) []string
}

type AppRestageConfig added in v1.11.0

type AppRestageConfig struct {
	// contains filtered or unexported fields
}

type AppVarMatcher added in v1.11.0

type AppVarMatcher interface {
	GetAPI() usercmd.APIClient
	AppsMatching(toComplete string) []string
	EnvMatching(ctx context.Context, appname, toComplete string) []string
}

type AppchartsService added in v1.11.0

type AppchartsService interface {
	ChartDefaultSet(ctx context.Context, name string) error
	ChartDefaultShow(ctx context.Context) error
	ChartList(ctx context.Context) error
	ChartShow(ctx context.Context, name string) error

	AppChartMatcher
}

type AppenvService added in v1.11.0

type AppenvService interface {
	EnvList(ctx context.Context, appname string) error
	EnvSet(ctx context.Context, appname, name, value string) error
	EnvShow(ctx context.Context, appname, name string) error
	EnvUnset(ctx context.Context, appname, name string) error

	AppMatcher
	AppVarMatcher
}

type ApplicationsService added in v1.11.0

type ApplicationsService interface {
	AppCreate(name string, updateRequest models.ApplicationUpdateRequest) error
	AppDelete(ctx context.Context, appNames []string, all bool) error
	AppExec(ctx context.Context, name, instance string) error
	AppExport(name string, toRegistry bool, exportRequest models.AppExportRequest) error
	AppLogs(name, stageID string, follow bool) error
	AppManifest(name, path string) error
	AppPortForward(ctx context.Context, name, instance string, address, ports []string) error
	AppPush(ctxt context.Context, manifest models.ApplicationManifest) error
	AppRestage(name string, restart bool) error
	AppRestart(name string) error
	AppShow(name string) error
	AppStageID(name string) (string, error)
	AppUpdate(name string, updateRequest models.ApplicationUpdateRequest) error
	Apps(all bool) error

	AppMatcher
	AppChartMatcher
	RegistryMatcher
	ConfigurationMatching(toComplete string) []string // --bind

	// interfaces for the env and chart sub-ensembles
	AppenvService
	AppchartsService
}

type ChangeConfig

type ChangeConfig struct {
	// contains filtered or unexported fields
}

type ChartValueConfig added in v1.11.0

type ChartValueConfig struct {
	// contains filtered or unexported fields
}

type ConfigurationAppMatcher

type ConfigurationAppMatcher interface {
	GetAPI() usercmd.APIClient
	ConfigurationMatching(toComplete string) []string
	AppsMatching(toComplete string) []string
}

type ConfigurationCreateConfig

type ConfigurationCreateConfig struct {
	// contains filtered or unexported fields
}

type ConfigurationDeleteConfig

type ConfigurationDeleteConfig struct {
	// contains filtered or unexported fields
}

type ConfigurationListConfig

type ConfigurationListConfig struct {
	// contains filtered or unexported fields
}

type ConfigurationService

type ConfigurationService interface {
	Configurations(all bool) error
	ConfigurationDetails(configuration string) error
	CreateConfiguration(configuration string, kvAssigments []string) error
	DeleteConfiguration(configurations []string, unbind bool, all bool) error
	ConfigurationMatching(tocomplete string) []string
	UpdateConfiguration(configuration string, removedKeys []string, assignments map[string]string) error
	BindConfiguration(configuration, application string) error
	UnbindConfiguration(configuration, application string) error

	ConfigurationAppMatcher
}

type EnumValue

type EnumValue struct {
	Allowed []string
	Value   string
}

EnumValue implements the Value interface It can be used to define a flag with a set of allowed values Ref: - https://github.com/spf13/pflag/blob/2e9d26c8c37aae03e3f9d4e90b7116f5accb7cab/flag.go#L185-L191 - https://github.com/spf13/pflag/issues/236#issuecomment-931600452

func NewEnumValue

func NewEnumValue(allowed []string, d string) *EnumValue

NewEnumValue give a list of allowed flag parameters, where the second argument is the default

func (*EnumValue) Set

func (a *EnumValue) Set(p string) error

func (EnumValue) String

func (a EnumValue) String() string

func (*EnumValue) Type

func (a *EnumValue) Type() string

type EpinioMatcher added in v1.11.0

type EpinioMatcher struct {
	ArgLimit int
	Filter   func(oldMatches, newMatches []string) []string
	Matchers []MatcherFunc
}

func NewEpinioMatcher added in v1.11.0

func NewEpinioMatcher(matchers ...MatcherFunc) *EpinioMatcher

func (*EpinioMatcher) Any added in v1.11.0

func (m *EpinioMatcher) Any() *EpinioMatcher

Any will not limit the check for the numbers of matchers, but it will loop through them. I.e: with 3 args and 2 matchers the first arg will be checked against the 1st matcher, the 2nd arg with the 2nd matcher, and the 3rd arg again with the first matcher.

func (*EpinioMatcher) FilterMatches added in v1.11.0

func (m *EpinioMatcher) FilterMatches() *EpinioMatcher

FilterMatches enables the filtering of the already matched suggestions

type FlagCompletionFunc

type FlagCompletionFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func NewAppChartMatcherValueFunc added in v1.11.0

func NewAppChartMatcherValueFunc(matcher AppChartMatcher) FlagCompletionFunc

func NewRegistryMatcherValueFunc added in v1.11.0

func NewRegistryMatcherValueFunc(matcher RegistryMatcher) FlagCompletionFunc

func NewServiceChartValueFunc added in v1.11.0

func NewServiceChartValueFunc(matcher ServiceChartValueMatcher) FlagCompletionFunc

NewServiceChartValueFunc returns a function returning a list of matching chart value names from the provided partial command.

func NewStaticFlagsCompletionFunc

func NewStaticFlagsCompletionFunc[T ~string](allowedValues []T) FlagCompletionFunc

type GitconfigCreateConfig added in v1.11.0

type GitconfigCreateConfig struct {
	// contains filtered or unexported fields
}

type GitconfigDeleteConfig added in v1.11.0

type GitconfigDeleteConfig struct {
	// contains filtered or unexported fields
}

type GitconfigMatcher added in v1.11.0

type GitconfigMatcher interface {
	GetAPI() usercmd.APIClient
	GitconfigsMatching(toComplete string) []string
}

type LoginConfig

type LoginConfig struct {
	// contains filtered or unexported fields
}

type LoginService

type LoginService interface {
	LoginOIDC(ctx context.Context, address string, trustCA, prompt bool) error
	Login(ctx context.Context, username, password, address string, trustCA bool) error
	Logout(ctx context.Context) error
}

type MatcherFunc added in v1.11.0

type MatcherFunc func(toComplete string) []string

type NamespaceDeleteConfig

type NamespaceDeleteConfig struct {
	// contains filtered or unexported fields
}

type NamespaceService

type NamespaceService interface {
	CreateNamespace(namespace string) error
	Namespaces() error
	DeleteNamespace(namespaces []string, force, all bool) error
	ShowNamespace(namespace string) error
	NamespacesMatching(toComplete string) []string
}

type RegistryMatcher added in v1.11.0

type RegistryMatcher interface {
	GetAPI() usercmd.APIClient
	ExportregistryMatching(toComplete string) []string
}

type RootConfig

type RootConfig struct {
	Output *EnumValue
}

func NewRootConfig

func NewRootConfig() *RootConfig

type ServiceAppMatcher added in v1.11.0

type ServiceAppMatcher interface {
	GetAPI() usercmd.APIClient
	ServiceMatching(toComplete string) []string
	AppsMatching(toComplete string) []string
}

type ServiceChartValueMatcher added in v1.11.0

type ServiceChartValueMatcher interface {
	GetAPI() usercmd.APIClient
}

type ServiceCreateConfig added in v1.11.0

type ServiceCreateConfig struct {
	// contains filtered or unexported fields
}

type ServiceDeleteConfig added in v1.11.0

type ServiceDeleteConfig struct {
	// contains filtered or unexported fields
}

type ServiceForwardConfig added in v1.11.0

type ServiceForwardConfig struct {
	// contains filtered or unexported fields
}

type ServiceListConfig added in v1.11.0

type ServiceListConfig struct {
	// contains filtered or unexported fields
}

type ServiceMatcher added in v1.11.0

type ServiceMatcher interface {
	GetAPI() usercmd.APIClient
	ServiceMatching(toComplete string) []string
}

type ServiceUpdateConfig added in v1.11.0

type ServiceUpdateConfig struct {
	// contains filtered or unexported fields
}

type ServicesService added in v1.11.0

type ServicesService interface {
	ServiceBind(serviceName, appName string) error
	ServiceCatalog() error
	ServiceCatalogShow(ctx context.Context, serviceName string) error
	ServiceCreate(catalogName, serviceName string, wait bool, chartValues models.ChartValueSettings) error
	ServiceDelete(serviceNames []string, unbind, all bool) error
	ServiceList() error
	ServiceListAll() error
	ServicePortForward(ctx context.Context, serviceName string, address, ports []string) error
	ServiceShow(serviceName string) error
	ServiceUnbind(serviceName, appName string) error
	ServiceUpdate(serviceName string, wait bool, removed []string, assignments map[string]string) error

	ServiceMatcher
	ServiceChartValueMatcher
	ServiceAppMatcher

	CatalogMatching(toComplete string) []string
}

type SettingsShowConfig

type SettingsShowConfig struct {
	// contains filtered or unexported fields
}

type ValidArgsFunc

type ValidArgsFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

ValidArgsFunc is a shorthand type for cobra argument validation functions.

func AnyArgsValidator added in v1.11.0

func AnyArgsValidator(matcher MatcherFunc) ValidArgsFunc

func FirstArgValidator added in v1.11.0

func FirstArgValidator(matcher MatcherFunc) ValidArgsFunc

func NewAppChartMatcherFirstFunc added in v1.11.0

func NewAppChartMatcherFirstFunc(matcher AppChartMatcher) ValidArgsFunc

NewAppChartMatcherFirstFunc returns a function returning list of matching app charts from the provided partial command. It only matches for the first command argument.

func NewAppMatcherAnyFunc added in v1.11.0

func NewAppMatcherAnyFunc(matcher AppMatcher) ValidArgsFunc

NewAppMatcherAnyFunc returns a function returning a list of matching apps from the provided partial command. It matches for all command arguments

func NewAppMatcherFirstFunc added in v1.11.0

func NewAppMatcherFirstFunc(matcher AppMatcher) ValidArgsFunc

NewAppMatcherFirstFunc returns a function returning list of matching apps from the provided partial command. It only matches for the first command argument.

func NewAppVarMatcherFunc added in v1.11.0

func NewAppVarMatcherFunc(matcher AppVarMatcher) ValidArgsFunc

NewAppVarMatcherFunc returns a function returning a list of matching configurations and apps from the provided partial command. It matches for the first (configurations) and second arguments (applications)

func NewConfigurationAppMatcherFunc

func NewConfigurationAppMatcherFunc(matcher ConfigurationAppMatcher) ValidArgsFunc

NewConfigurationAppMatcherFunc returns a function returning a list of matching configurations and apps from the provided partial command. It matches for the first (configurations) and second arguments (applications)

func NewEpinioArgValidator added in v1.11.0

func NewEpinioArgValidator(matcher *EpinioMatcher) ValidArgsFunc

func NewGitconfigMatcherFunc added in v1.11.0

func NewGitconfigMatcherFunc(matcher GitconfigMatcher) ValidArgsFunc

NewGitconfigMatcherFunc returns a list of matching git configurations from the provided partial command. It only matches for the first command argument.

func NewServiceAppMatcherFunc added in v1.11.0

func NewServiceAppMatcherFunc(matcher ServiceAppMatcher) ValidArgsFunc

NewServiceAppMatcherFunc returns a function returning a list of matching services and apps from the provided partial command. It matches for the first (services) and second arguments (applications)

func NewServiceMatcherAnyFunc added in v1.11.0

func NewServiceMatcherAnyFunc(matcher ServiceMatcher) ValidArgsFunc

NewServiceMatcherAnyFunc returns a function returning a list of matching services from the provided partial command. It matches for all command arguments

func NewServiceMatcherFirstFunc added in v1.11.0

func NewServiceMatcherFirstFunc(matcher ServiceMatcher) ValidArgsFunc

NewServiceMatcherFirstFunc returns a function returning list of matching services from the provided partial command. It only matches for the first command argument.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL