Skip to content

Commit 4198020

Browse files
committed
chore: rename property
1 parent 9eba395 commit 4198020

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/cli/check.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func runCheck(cmd *cobra.Command, opts checkOptions) error {
173173
for _, sauce := range upgradeableSauces {
174174
err := runUpgrade(cmd, upgradeOptions{
175175
RecipeURL: fmt.Sprintf("%s:%s", sauce.CheckFrom, latestSauceVersions[sauce]),
176-
SauceID: sauce.ID.String(),
176+
TargetSauceID: sauce.ID.String(),
177177
ReuseOldValues: true,
178178
Common: opts.Common,
179179
OCIRepository: opts.OCIRepository,

internal/cli/upgrade.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
type upgradeOptions struct {
2626
RecipeURL string
2727
ReuseOldValues bool
28-
SauceID string
28+
TargetSauceID string
2929

3030
option.Common
3131
option.OCIRepository
@@ -69,7 +69,7 @@ jalapeno upgrade path/to/recipe --dir other/dir
6969
jalapeno upgrade path/to/recipe --set NEW_VAR=foo`,
7070
}
7171

72-
cmd.Flags().StringVar(&opts.SauceID, "sauce-id", "", "If the project contains multiple sauces with the same recipe, specify the ID of the sauce to be upgraded")
72+
cmd.Flags().StringVar(&opts.TargetSauceID, "sauce-id", "", "If the project contains multiple sauces with the same recipe, specify the ID of the sauce to be upgraded")
7373
cmd.Flags().BoolVar(&opts.ReuseOldValues, "reuse-old-values", true, "Automatically set values for variables which already have a value in the existing sauce")
7474

7575
if err := option.ApplyFlags(&opts, cmd.Flags()); err != nil {
@@ -99,8 +99,8 @@ func runUpgrade(cmd *cobra.Command, opts upgradeOptions) error {
9999
return err
100100
}
101101

102-
if opts.SauceID != "" {
103-
id, uuidErr := uuid.FromString(opts.SauceID)
102+
if opts.TargetSauceID != "" {
103+
id, uuidErr := uuid.FromString(opts.TargetSauceID)
104104
if uuidErr != nil {
105105
return fmt.Errorf("invalid sauce ID: %w", err)
106106
}
@@ -127,7 +127,7 @@ func runUpgrade(cmd *cobra.Command, opts upgradeOptions) error {
127127
}
128128

129129
if versionComparison > 0 {
130-
if opts.SauceID == "" {
130+
if opts.TargetSauceID == "" {
131131
cmd.Printf("Upgrading sauce with recipe '%s' from version %s to %s\n",
132132
oldSauce.Recipe.Name,
133133
oldSauce.Recipe.Metadata.Version,

0 commit comments

Comments
 (0)