Documentation
¶
Index ¶
- func CloseFileLogger()
- func DirectRuntimeProductIDs() map[string]bool
- func DiscoveryBaseURL() string
- func Execute() int
- func FileLoggerInstance() *slog.Logger
- func NewRootCommand(ctx ...context.Context) *cobra.Command
- func NewRootCommandWithEngine(rootCtx context.Context, engine *pipeline.Engine) *cobra.Command
- func ResetRuntimeTokenCache()
- func SetDiscoveryBaseURL(url string)
- func SetDynamicServers(servers []market.ServerDescriptor)
- func Version() string
- type GlobalFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirectRuntimeProductIDs ¶
DirectRuntimeProductIDs returns the set of product IDs that have direct runtime endpoints configured, sourced from dynamic server discovery.
func DiscoveryBaseURL ¶
func DiscoveryBaseURL() string
DiscoveryBaseURL returns the effective base URL for discovery — discoveryBaseURLOverride if set, otherwise DefaultMarketBaseURL.
func FileLoggerInstance ¶
FileLoggerInstance returns the package-level file logger, or nil if not initialized.
func NewRootCommand ¶
NewRootCommand constructs the root CLI command. The provided context is propagated to background goroutines and the Cobra command tree so that SIGINT/SIGTERM can cancel in-flight work.
func NewRootCommandWithEngine ¶
NewRootCommandWithEngine constructs the root CLI command with an optional pipeline engine for input correction. When engine is nil, no pipeline processing is applied.
func ResetRuntimeTokenCache ¶ added in v1.0.5
func ResetRuntimeTokenCache()
ResetRuntimeTokenCache clears the cached token, forcing a reload on next access. This should be called after login/logout operations.
func SetDiscoveryBaseURL ¶
func SetDiscoveryBaseURL(url string)
SetDiscoveryBaseURL sets the base URL used for dynamic server discovery. Intended for test use only.
func SetDynamicServers ¶
func SetDynamicServers(servers []market.ServerDescriptor)
SetDynamicServers injects server data discovered from servers.json. All product endpoints are resolved dynamically from this data.