Skip to content

Commit ff06257

Browse files
committed
Remove "rewatch" from wording in message texts
1 parent 4d73caa commit ff06257

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

rewatch/src/cli.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ use std::{ffi::OsString, ops::Deref};
33
use clap::{Args, Parser, Subcommand};
44
use 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)]
149147
pub enum Command {
150-
/// Build using Rewatch
148+
/// Build the project
151149
Build(BuildArgs),
152150
/// Build, then start a watcher
153151
Watch(WatchArgs),

rewatch/src/lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub enum Error {
2121
impl 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

rewatch/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ fn main() -> Result<()> {
128128
fn 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,

rewatch/tests/lock.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ success "Watcher Started"
2525

2626
sleep 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;
2929
then
3030
success "Lock is correctly set"
3131
exit_watcher
@@ -43,7 +43,7 @@ success "Watcher Started"
4343

4444
sleep 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;
4747
then
4848
error "Lock not removed correctly"
4949
exit_watcher

0 commit comments

Comments
 (0)