Documentation
¶
Overview ¶
Package cmd implements all td CLI commands using cobra.
Index ¶
- func AddFeatureGatedCommand(featureName string, command *cobra.Command)
- func AutoSyncEnabled() bool
- func Execute()
- func RegisterSyncFeatureHooks(hooks SyncFeatureHooks)
- func SetVersion(v string)
- func ValidateIssueID(id string, cmdUsage string) error
- func ValidateIssueIDs(ids []string, cmdUsage string) error
- type RuntimeStats
- type SubmitReviewResult
- type SyncFeatureHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFeatureGatedCommand ¶ added in v0.30.0
AddFeatureGatedCommand registers a command only when its feature is enabled for the current process (env overrides + defaults).
func AutoSyncEnabled ¶ added in v0.30.0
func AutoSyncEnabled() bool
AutoSyncEnabled returns true if auto-sync is enabled via config.
func RegisterSyncFeatureHooks ¶ added in v0.30.0
func RegisterSyncFeatureHooks(hooks SyncFeatureHooks)
RegisterSyncFeatureHooks registers sync-related hooks.
func SetVersion ¶
func SetVersion(v string)
SetVersion sets the version string and enables --version flag
func ValidateIssueID ¶ added in v0.4.21
ValidateIssueID checks if an issue ID is valid (non-empty, non-whitespace) Returns an error with helpful usage info if invalid
func ValidateIssueIDs ¶ added in v0.4.21
ValidateIssueIDs validates multiple issue IDs
Types ¶
type RuntimeStats ¶ added in v0.30.0
type RuntimeStats struct {
AllocMB float64 `json:"alloc_mb"`
SysMB float64 `json:"sys_mb"`
NumGC uint32 `json:"num_gc"`
NumGoroutine int `json:"num_goroutine"`
HeapObjects uint64 `json:"heap_objects"`
HeapInuseMB float64 `json:"heap_inuse_mb"`
}
RuntimeStats contains runtime metrics for soak testing
type SubmitReviewResult ¶ added in v0.13.0
SubmitReviewResult holds the result of a review submission
type SyncFeatureHooks ¶ added in v0.30.0
type SyncFeatureHooks struct {
OnStartup func(commandName string)
OnAfterMutation func()
IsMutatingCommand func(commandName string) bool
}
SyncFeatureHooks exposes optional sync hooks that can be registered by sync-specific command files. These hooks are gated by feature flags.
Source Files
¶
- auth.go
- autosync.go
- block.go
- board.go
- config.go
- context.go
- create.go
- debug_stats.go
- delete.go
- dependencies.go
- doctor.go
- epic.go
- errors.go
- feature.go
- feature_gate.go
- focus.go
- handoff.go
- init.go
- link.go
- list.go
- log.go
- monitor.go
- note.go
- project.go
- query.go
- review.go
- root.go
- search.go
- security.go
- show.go
- start.go
- stats.go
- stats_analytics.go
- stats_errors.go
- stats_security.go
- status.go
- sync.go
- sync_conflicts.go
- sync_init.go
- sync_tail.go
- system.go
- task.go
- tree.go
- undo.go
- unstart.go
- update.go
- workflow.go
- ws.go