Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProjectRef = cmdutil.ResourceRef[types.Project, types.Project]{ EnvironmentScoped: true, Singular: "project", Plural: "projects", IDHint: "the project ID", ListCmd: "arcane projects list", GetPath: clitypes.Project, IdentifierOf: func(data types.Project) string { return data.ID }, ListPath: clitypes.Projects, Matches: func(item types.Project, identifierLower, original string) bool { return strings.Contains(strings.ToLower(item.ID), identifierLower) || strings.Contains(strings.ToLower(item.Name), identifierLower) || strings.EqualFold(item.Name, original) || strings.Contains(strings.ToLower(item.Path), identifierLower) }, Label: func(match types.Project) string { return fmt.Sprintf("%s (%s, %s, %s)", match.Name, match.ID, match.Status, match.Path) }, Promote: func(match types.Project) *types.Project { return &match }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.