We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f43be33 commit eaffe47Copy full SHA for eaffe47
pkg/cmd/dev.go
@@ -315,9 +315,11 @@ var devCommand = cli.Command{
315
}
316
317
func runPreview(ctx context.Context, cmd *cli.Command) error {
318
- // Clear the screen and move the cursor to the top
319
- fmt.Print("\033[2J\033[H")
320
- os.Stdout.Sync()
+ if cmd.Bool("watch") {
+ // Clear the screen and move the cursor to the top
+ fmt.Print("\033[2J\033[H")
321
+ os.Stdout.Sync()
322
+ }
323
324
cc := getAPICommandContext(cmd)
325
0 commit comments