Getting Started
RustyWatch Now Supports Multiple Projects! 🤘
Installation
Using Cargo:
cargo install rustywatchOr using Homebrew:
brew tap ak9024/rustywatchbrew install rustywatchQuick Start with Init
Generate a configuration file automatically:
rustywatch initOr use auto-detected defaults:
rustywatch init --yesConfiguration
in the root directory of your projects. create file named rustywatch.yaml.
workspaces: # define your directory here. - dir: go-project # commands run automatically in 'go-project/' directory cmd: go build # binary path relative to workspace dir bin_path: './go-project' # optional: if do you have a specific arguments bin_arg: - server # go run main.go server # ignore or skip to listen from RustyWatch ignore: - '.git/' # optional: load environment variables from .env file env_file: '.env'
# Add another projects - dir: <your_dir> cmd: <your_commands> bin_path: <your_bin_location> # relative to workspace dir bin_arg: <your_bin_arguments> ignore: <ignore> env_file: <path_to_env_file>Usage
Once you’ve set up the configuration file, simply run RustyWatch by typing:
rustywatchRustyWatch will automatically start building your projects based on the settings in your rustywatch.yaml