Documentation
¶
Overview ¶
Package update provides the update command implementation.
Index ¶
- func BuildUpdateOptions(provider, source, catalogPath string, dryRun, force, cleanup, reformat bool, ...) ([]sync.Option, error)
- func ConfirmChanges() (bool, error)
- func ExecuteUpdate(ctx context.Context, app application, flags *Flags, logger *zerolog.Logger) error
- func LoadCatalog(app application, catalogPath string, isQuiet bool) (*starmap.Client, error)
- func NewCommand(app application) *cobra.Command
- func ValidateForceUpdate(isQuiet, autoApprove bool) (bool, error)
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUpdateOptions ¶
func BuildUpdateOptions(provider, source, catalogPath string, dryRun, force, cleanup, reformat bool, sourcesDir, modelsDevGitCommit string, autoInstallDeps, skipDepPrompts, requireAllSources bool) ([]sync.Option, error)
BuildUpdateOptions creates a slice of update options based on the provided flags.
func ConfirmChanges ¶
ConfirmChanges asks the user to confirm applying changes. Returns true if the user confirms, false if cancelled.
func ExecuteUpdate ¶
func ExecuteUpdate(ctx context.Context, app application, flags *Flags, logger *zerolog.Logger) error
ExecuteUpdate orchestrates the complete update process using app context.
func LoadCatalog ¶
LoadCatalog creates a starmap instance using app context. A catalogPath value selects the single local read/write workspace. Otherwise, the application composition supplies its configured default.
func NewCommand ¶
NewCommand creates the update command using app context.
func ValidateForceUpdate ¶
ValidateForceUpdate shows a warning for force updates and asks for confirmation. Returns true if the user confirms to proceed, false if cancelled.