projects

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: BSD-3-Clause Imports: 23 Imported by: 0

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

func Command

func Command() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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