cli

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package cli generates Cobra commands from the domain operation definitions. Each operation becomes a CLI command that makes an HTTP call to the TaskFlow server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCLI

func BuildCLI(cfg *Config) *cobra.Command

BuildCLI generates a Cobra command tree from model.Resources() and model.Operations(). Config is resolved lazily via SetConfig before commands run.

func SetConfig

func SetConfig(cfg Config)

SetConfig sets the active CLI configuration. Called by the root command's PersistentPreRun after Viper resolves flags, env vars, and config file.

Types

type Config

type Config struct {
	ServerURL string
	APIKey    string
}

Config holds the CLI configuration.

Jump to

Keyboard shortcuts

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