2 files changed,
4 insertions(+),
4 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-03-21 18:41:04 +0200
Authored at:
2026-03-21 18:40:40 +0200
Change ID:
muukrqltrwlrslqkmymlznsspuwmtpwm
Parent:
f16095b
jump to
| M | internal/cli/cli.go |
| M | internal/cli/repo.go |
M
internal/cli/cli.go
路路路 87 87 }, 88 88 }, 89 89 { 90 - Name: "checkout", 91 - Usage: "switch branches in repo", 92 - Action: c.repoCheckoutAction, 90 + Name: "set-default", 91 + Usage: "switch default repo branch", 92 + Action: c.repoSetDefaultAction, 93 93 Arguments: []cli.Argument{ 94 94 &cli.StringArg{Name: "name"}, 95 95 },
M
internal/cli/repo.go
路路路 106 106 return nil 107 107 } 108 108 109 -func (c *Cli) repoCheckoutAction(ctx context.Context, cmd *cli.Command) error { 109 +func (c *Cli) repoSetDefaultAction(ctx context.Context, cmd *cli.Command) error { 110 110 name, err := c.getRepoNameArg(cmd) 111 111 if name == "" { 112 112 return err