File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ use std::{ffi::OsString, ops::Deref};
3
3
use clap:: { Args , Parser , Subcommand } ;
4
4
use clap_verbosity_flag:: InfoLevel ;
5
5
6
- /// Rewatch is an alternative build system for the Rescript Compiler bsb (which uses Ninja internally). It strives
7
- /// to deliver consistent and faster builds in monorepo setups with multiple packages, where the
8
- /// default build system fails to pick up changed interfaces across multiple packages.
6
+ /// ReScript - Fast, Simple, Fully Typed JavaScript from the Future
9
7
#[ derive( Parser , Debug ) ]
10
8
#[ command( version) ]
11
9
#[ command( args_conflicts_with_subcommands = true ) ]
@@ -147,7 +145,7 @@ pub struct WatchArgs {
147
145
148
146
#[ derive( Subcommand , Clone , Debug ) ]
149
147
pub enum Command {
150
- /// Build using Rewatch
148
+ /// Build the project
151
149
Build ( BuildArgs ) ,
152
150
/// Build, then start a watcher
153
151
Watch ( WatchArgs ) ,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub enum Error {
21
21
impl std:: fmt:: Display for Error {
22
22
fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
23
23
let msg = match self {
24
- Error :: Locked ( pid) => format ! ( "Rewatch is already running. The process ID (PID) is {}" , pid) ,
24
+ Error :: Locked ( pid) => format ! ( "A ReScript build is already running. The process ID (PID) is {}" , pid) ,
25
25
Error :: ParsingLockfile ( e) => format ! (
26
26
"Could not parse lockfile: \n {} \n (try removing it and running the command again)" ,
27
27
e
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ fn main() -> Result<()> {
128
128
fn get_lock ( folder : & str ) -> lock:: Lock {
129
129
match lock:: get ( folder) {
130
130
lock:: Lock :: Error ( error) => {
131
- println ! ( "Could not start Rewatch : {error}" ) ;
131
+ println ! ( "Could not start ReScript build : {error}" ) ;
132
132
std:: process:: exit ( 1 ) ;
133
133
}
134
134
acquired_lock => acquired_lock,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ success "Watcher Started"
25
25
26
26
sleep 2
27
27
28
- if rewatch build | grep ' Could not start Rewatch :' & > /dev/null;
28
+ if rewatch build | grep ' Could not start ReScript build :' & > /dev/null;
29
29
then
30
30
success " Lock is correctly set"
31
31
exit_watcher
@@ -43,7 +43,7 @@ success "Watcher Started"
43
43
44
44
sleep 2
45
45
46
- if cat tmp.txt | grep ' Could not start Rewatch :' & > /dev/null;
46
+ if cat tmp.txt | grep ' Could not start ReScript build :' & > /dev/null;
47
47
then
48
48
error " Lock not removed correctly"
49
49
exit_watcher
You can’t perform that action at this time.
0 commit comments