Documentation
¶
Overview ¶
Package cli owns the linctl command-line surface.
Index ¶
- func CommandPath(command *cobra.Command) string
- func Execute(ctx context.Context, build BuildInfo) error
- func NewRootCommand(ctx context.Context, build BuildInfo) *cobra.Command
- func SortedAvailableCommands(parent *cobra.Command) []*cobra.Command
- type BuildInfo
- type CommandBacking
- type CommandGraphQLRoot
- type CommandInfo
- type CommandSafety
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandPath ¶ added in v0.3.3
CommandPath returns the command path without the binary name prefix.
func NewRootCommand ¶
NewRootCommand builds the linctl root command.
Types ¶
type CommandBacking ¶ added in v0.3.3
type CommandBacking struct {
OperationBacking string
TargetScope string
GraphQLRoots []CommandGraphQLRoot
}
CommandBacking is the domain-map side of a command's control-surface metadata.
type CommandGraphQLRoot ¶ added in v0.3.3
CommandGraphQLRoot describes a GraphQL root field that backs a public command.
type CommandInfo ¶ added in v0.3.3
type CommandInfo struct {
Path string
UseLine string
Short string
Aliases []string
Entity string
TargetArgs []string
Safety CommandSafety
CollectionKey string
DocCategory string
OperationBacking string
TargetScope string
GraphQLRoots []CommandGraphQLRoot
}
CommandInfo is the normalized command metadata used by generators and drift checks that need the public Cobra surface without re-walking it.
func CommandInventory ¶ added in v0.3.3
func CommandInventory(root *cobra.Command) []CommandInfo
CommandInventory returns available non-help commands in stable path order.
func EnrichCommandInventory ¶ added in v0.3.3
func EnrichCommandInventory(commands []CommandInfo, backingByPath map[string]CommandBacking) []CommandInfo
EnrichCommandInventory merges domain-map backing into the normalized command inventory without making Cobra registration depend on repo documentation.
type CommandSafety ¶ added in v0.3.3
type CommandSafety string
CommandSafety classifies a command's behavior for command-surface audits.
const ( CommandSafetyRead CommandSafety = "read" CommandSafetyWrite CommandSafety = "write" CommandSafetyLocal CommandSafety = "local" CommandSafetyUnknown CommandSafety = "unknown" )
Command safety values used by the command metadata inventory.
Source Files
¶
- agent_activity.go
- agent_session.go
- agent_skill.go
- application.go
- attachment.go
- audit_entry.go
- auth.go
- auth_login.go
- auth_readiness.go
- auth_status.go
- auth_token.go
- bulk.go
- command_inventory.go
- comment.go
- completion.go
- current.go
- custom_view.go
- customer.go
- customer_need.go
- customer_status.go
- customer_tier.go
- cycle.go
- cycle_write.go
- doctor.go
- document.go
- emoji.go
- export.go
- external_link.go
- external_user.go
- favorite.go
- files.go
- flags.go
- group_command.go
- initiative.go
- initiative_label.go
- initiative_relation.go
- initiative_to_project.go
- initiative_update.go
- issue.go
- issue_children.go
- issue_comments.go
- issue_current.go
- issue_deps.go
- issue_label_write.go
- issue_port.go
- issue_pr.go
- issue_relation.go
- issue_relation_write.go
- issue_template.go
- issue_to_release.go
- issue_vcs_branch.go
- issue_write.go
- issue_writers.go
- label.go
- label_write.go
- list.go
- logging.go
- next.go
- normalize.go
- notification.go
- open.go
- organization.go
- output.go
- project.go
- project_label.go
- project_label_association_write.go
- project_label_write.go
- project_milestone.go
- project_milestone_write.go
- project_relation.go
- project_status.go
- project_update.go
- project_write.go
- rate_limit.go
- release.go
- release_pipeline.go
- roadmap.go
- roadmap_to_project.go
- root.go
- runtime.go
- search.go
- semantic_search.go
- sla_configuration.go
- sprint.go
- target.go
- team.go
- team_membership.go
- template.go
- time_schedule.go
- triage_responsibility.go
- usage.go
- user.go
- user_settings.go
- workflow_state.go
- write.go