Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplyCommand ¶
NewApplyCommand returns the 'apply' command for the CLI.
func NewApplyCommandWithContext ¶
NewApplyCommandWithContext returns the 'apply' command with the specified context.
func NewInitCommand ¶
NewInitCommand returns the 'init' command with a nil context. It initializes the default agent-sync project structure.
func NewInitCommandWithContext ¶
NewInitCommandWithContext returns the 'init' command with the specified context.
func SetupCommands ¶
SetupCommands registers all commands with the root command and provides them with context. This function wires up the command handlers with the shared CLI context.
Types ¶
type Context ¶
type Context struct {
// Logger is used for internal logging (debug, error tracking)
Logger *zap.Logger
// Output is used for user-facing console output
Output log.OutputWriter
}
Context holds shared resources and configuration for CLI commands. It provides consistent access to logging and output facilities.
Click to show internal directories.
Click to hide internal directories.