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};
33use  clap:: { Args ,  Parser ,  Subcommand } ; 
44use  clap_verbosity_flag:: InfoLevel ; 
55
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 
97#[ derive( Parser ,  Debug ) ]  
108#[ command( version) ]  
119#[ command( args_conflicts_with_subcommands = true ) ]  
@@ -147,7 +145,7 @@ pub struct WatchArgs {
147145
148146#[ derive( Subcommand ,  Clone ,  Debug ) ]  
149147pub  enum  Command  { 
150-     /// Build using Rewatch  
148+     /// Build the project  
151149Build ( BuildArgs ) , 
152150    /// Build, then start a watcher 
153151Watch ( WatchArgs ) , 
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ pub enum Error {
2121impl  std:: fmt:: Display  for  Error  { 
2222    fn  fmt ( & self ,  f :  & mut  std:: fmt:: Formatter )  -> std:: fmt:: Result  { 
2323        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) , 
2525            Error :: ParsingLockfile ( e)  => format ! ( 
2626                "Could not parse lockfile: \n  {} \n   (try removing it and running the command again)" , 
2727                e
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ fn main() -> Result<()> {
128128fn  get_lock ( folder :  & str )  -> lock:: Lock  { 
129129    match  lock:: get ( folder)  { 
130130        lock:: Lock :: Error ( error)  => { 
131-             println ! ( "Could not start Rewatch : {error}" ) ; 
131+             println ! ( "Could not start ReScript build : {error}" ) ; 
132132            std:: process:: exit ( 1 ) ; 
133133        } 
134134        acquired_lock => acquired_lock, 
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ success "Watcher Started"
2525
2626sleep 2
2727
28- if  rewatch build |  grep ' Could not start Rewatch :' & >  /dev/null; 
28+ if  rewatch build |  grep ' Could not start ReScript build :' & >  /dev/null; 
2929then 
3030  success " Lock is correctly set" 
3131  exit_watcher
@@ -43,7 +43,7 @@ success "Watcher Started"
4343
4444sleep 2
4545
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; 
4747then 
4848  error " Lock not removed correctly" 
4949  exit_watcher
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments