Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ActorEnvChain = []string{"TL_ACTOR", "ACTOR_NAME", "BEADS_ACTOR"}
ActorEnvChain is the environment variable fallback chain for automatic actor resolution. Earlier entries take precedence.
View Source
var DefaultDetectActor = defaultDetectActor
DefaultDetectActor is the default auto-detection function, exported so tests can restore DetectedActor after overriding it.
View Source
var DetectedActor = DefaultDetectActor
DetectedActor is called when no explicit actor is provided via CLI flag or environment variable. Tests may override this to simulate agent detection.
Functions ¶
func ErrorExitCode ¶
func NewRootCmd ¶
func ResolveActor ¶
ResolveActor returns the actor identity using this priority:
- CLI --actor flag (when non-empty)
- Environment variables in ActorEnvChain order
- Auto-detection via DetectedActor
func SetVersion ¶
func SetVersion(v string)
SetVersion records the version string baked in by main; cobra surfaces it via `tl --version` and `tl version`.
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.