Skip to content

Commit c44d4d6

Browse files
committed
Rename set-cache flag to runtime-path for checkout cmd
1 parent 92de4e4 commit c44d4d6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/state/internal/cmdtree/checkout.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ func newCheckoutCommand(prime *primer.Values) *captain.Command {
2525
Value: &params.Branch,
2626
},
2727
{
28-
Name: locale.Tl("flag_state_checkout_cache", "set-cache"),
29-
Description: locale.Tl("flag_state_checkout_cache_description", "Path to store the runtime files"),
30-
Value: &params.Cache,
28+
Name: locale.Tl("flag_state_checkout_runtime-path", "runtime-path"),
29+
Description: locale.Tl("flag_state_checkout_runtime-path_description", "Path to store the runtime files"),
30+
Value: &params.RuntimePath,
3131
},
3232
},
3333
[]*captain.Argument{

internal/runners/checkout/checkout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Params struct {
2424
Namespace *project.Namespaced
2525
PreferredPath string
2626
Branch string
27-
Cache string
27+
RuntimePath string
2828
}
2929

3030
type primeable interface {
@@ -66,7 +66,7 @@ func (u *Checkout) Run(params *Params) error {
6666

6767
logging.Debug("Checking out %s to %s", params.Namespace.String(), params.PreferredPath)
6868
var err error
69-
projectDir, err := u.checkout.Run(params.Namespace, params.Branch, params.Cache, params.PreferredPath)
69+
projectDir, err := u.checkout.Run(params.Namespace, params.Branch, params.RuntimePath, params.PreferredPath)
7070
if err != nil {
7171
return locale.WrapError(err, "err_checkout_project", "", params.Namespace.String())
7272
}

0 commit comments

Comments
 (0)