Documentation
¶
Overview ¶
Package update provides the update command implementation.
Index ¶
- func BuildUpdateOptions(provider, output string, dryRun, force, autoApprove, cleanup, reformat bool, ...) []starmap.SyncOption
- func ConfirmChanges() (bool, error)
- func ExecuteUpdate(ctx context.Context, flags *Flags, globalFlags *globals.Flags) error
- func LoadCatalog(inputPath string, isQuiet bool) (starmap.Starmap, error)
- func NewCommand(globalFlags *globals.Flags) *cobra.Command
- func ValidateForceUpdate(isQuiet, autoApprove bool) (bool, error)
- type Flags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUpdateOptions ¶ added in v0.0.6
func BuildUpdateOptions(provider, output string, dryRun, force, autoApprove, cleanup, reformat bool, sourcesDir string) []starmap.SyncOption
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 ¶
ExecuteUpdate orchestrates the complete update process.
func LoadCatalog ¶
LoadCatalog creates a starmap instance with the appropriate catalog based on the input path. If inputPath is empty, uses the embedded catalog. Otherwise, loads from the specified directory.
func NewCommand ¶
NewCommand creates the update command.
func ValidateForceUpdate ¶
ValidateForceUpdate shows a warning for force updates and asks for confirmation. Returns true if the user confirms to proceed, false if cancelled.