-
Notifications
You must be signed in to change notification settings - Fork 153
feat: add --watch-clear-screen option to clear terminal on rebuild #4031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
d15fb00
0e3a1b2
7f689d0
f8e80db
3ae42f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -89,6 +89,7 @@ object Package extends ScalaCommand[PackageOptions] with BuildCommandHelpers { | |||||
| val withTestScope = options.shared.scope.test.getOrElse(false) | ||||||
| if options.watch.watchMode then { | ||||||
| var expectedModifyEpochSecondOpt = Option.empty[Long] | ||||||
| var isFirstRun = true | ||||||
|
||||||
| var isFirstRun = true | |
| val isFirstRun = new AtomicBoolean(true) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -208,6 +208,7 @@ object Repl extends ScalaCommand[ReplOptions] with BuildCommandHelpers { | |||||
| } | ||||||
| } | ||||||
| else if (options.sharedRepl.watch.watchMode) { | ||||||
| var isFirstRun = true | ||||||
|
||||||
| var isFirstRun = true | |
| val isFirstRun = new AtomicBoolean(true) |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -252,6 +252,7 @@ object Run extends ScalaCommand[RunOptions] with BuildCommandHelpers { | |||||
| */ | ||||||
| val mainThreadOpt = AtomicReference(Option.empty[Thread]) | ||||||
|
|
||||||
| var isFirstRun = true | ||||||
|
||||||
| var isFirstRun = true | |
| val isFirstRun = new AtomicBoolean(true) |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -18,7 +18,12 @@ final case class SharedWatchOptions( | |||||||
| @Tag(tags.should) | ||||||||
| @Tag(tags.inShortHelp) | ||||||||
| @Name("revolver") | ||||||||
| restart: Boolean = false | ||||||||
| restart: Boolean = false, | ||||||||
| @Group(HelpGroup.Watch.toString) | ||||||||
| @HelpMessage("Clear the screen each time the watch mode detects changes and re-compiles or re-runs") | ||||||||
|
||||||||
| @HelpMessage("Clear the screen each time the watch mode detects changes and re-compiles or re-runs") | |
| @HelpMessage("Clear the screen each time watch mode detects changes and re-compiles or re-runs") |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| @Name("watch-cls") | |
| @Name("watchCls") | |
| @Name("watchClear") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be considered a nitpick, but this feels more future-proof.