Skip to content

Commit

Permalink
cmd/create: Restore the spinner, when pulling an image, to stdout
Browse files Browse the repository at this point in the history
This doesn't seem to have any user-visible effect. However, since the
line was inadvertently removed, it's good to put it back.

Fallout from 950f510

#498
  • Loading branch information
debarshiray committed Jul 10, 2020
1 parent 950f510 commit bf815d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ func pullImage(image, release string) (bool, error) {
if logLevel := logrus.GetLevel(); logLevel < logrus.DebugLevel && terminal.IsTerminal(stdoutFdInt) {
s := spinner.New(spinner.CharSets[9], 500*time.Millisecond)
s.Prefix = fmt.Sprintf("Pulling %s: ", imageFull)
s.Writer = os.Stdout
s.Start()
defer s.Stop()
}
Expand Down

0 comments on commit bf815d3

Please sign in to comment.