Skip to content

Commit

Permalink
chore(cmd): apply styling to spinners
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Sep 12, 2024
1 parent da3b10a commit 4fd3d1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/lk/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ func cloneTemplate(_ context.Context, cmd *cli.Command, url, appName string) err
}
os.RemoveAll(path.Join(appName, ".git"))
}).
Style(theme.Focused.Title).
Run(); err != nil {
return err
}
Expand Down Expand Up @@ -384,7 +385,7 @@ func doInstall(ctx context.Context, task bootstrap.KnownTask, rootPath string, v
if err := spinner.New().
Title("Installing...").
Action(func() { cmdErr = install() }).
Type(spinner.Dots).
Style(theme.Focused.Title).
Run(); err != nil {
return err
}
Expand Down Expand Up @@ -425,7 +426,7 @@ func runTask(ctx context.Context, cmd *cli.Command) error {
if err := spinner.New().
Title("Running task " + taskName + "...").
Action(func() { cmdErr = task() }).
Type(spinner.Dots).
Style(theme.Focused.Title).
Run(); err != nil {
return err
}
Expand Down
1 change: 1 addition & 0 deletions cmd/lk/cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ func tryAuthIfNeeded(ctx context.Context, cmd *cli.Command) error {
Action(func() {
ak, pollErr = pollClaim(ctx, cmd)
}).
Style(theme.Focused.Title).
Run(); err != nil {
return err
}
Expand Down

0 comments on commit 4fd3d1f

Please sign in to comment.