GUARD(1)
π GUARD(1) β like, the manual, but make it cute π
okay bestie, welcome to guard(1) π«Ά this is the manual page for Guard, and yes, we're doing this in full group-chat mode, but every single flag is staying exactly where it belongs. no cap.
β¨ NAME β¨
guard β Guard keeps an eye on your file modifications. like a little guardian angel for your codebase ππ¦
πΈ DESCRIPTION πΈ
Guard is a command line tool to easily handle events on file system modifications. that's it, that's the vibe. something changes in your files, Guard notices, stuff happens. it's giving watchful. it's giving reliable. π
π SYNOPSIS π
guard <COMMAND> <OPTIONS>
π COMMANDS π
π start
Starts Guard. This is the default command if none is provided β so if you're out here typing nothing, Guard just starts. main character behaviour fr fr β¨
The following options are available:
-c,--clearβ Clears the Shell after each change. fresh screen, fresh me π§Ό-n,--notify FLAGβ Disable notifications (Growl or Libnotify depending on your system). Notifications can be disabled globally by setting aGUARD_NOTIFYenvironment variable tofalse. FLAG can betrue/falseort/f. so many ways to say no thanks π-g,--group GROUP1 GROUP2...β Scopes the Guard actions to the groups specified by GROUP1, GROUP2, etc. Group names should be separated by spaces. Plugins that donΒ΄t belong to a group are considered global and are always run β they're the extroverts of the plugin world, they show up to everything π-P,--plugin PLUGIN1 PLUGIN2...β Scopes the Guard actions to the plugins specified by PLUGIN1, PLUGIN2, etc. Plugin names should be separated by spaces.-d,--debugβ Runs Guard in debug mode. detective mode activated π-w,--watchdir PATHβ Tells Guard to watch PATH instead of./.-G,--guardfile FILEβ Tells Guard to use FILE as its Guardfile instead of./Guardfileor~/.Guardfile.-i,--no-interactionsβ Turn off completely any Guard terminal interactions. do not perceive me π-B,--no-bundler-warningβ Turn off warning when Bundler is not present.-l,--latencyβ Overwrite ListenΒ΄s default latency.-p,--force-pollingβ Force usage of the Listen polling listener.-y,--wait-for-delayβ Overwrite ListenΒ΄s defaultwait_for_delay, useful for kate-like editors through ssh access.
π¦ init [GUARDS]
If no Guardfile is present in the current directory, creates an empty Guardfile. baby's first Guardfile π₯Ή
If GUARDS are present, add their default Guardfile configuration to the current Guardfile. Note that GUARDS is a list of the Guard plugin names without the guard- prefix. For instance to initialize guard-rspec, run guard init rspec.
so like. drop the prefix. the prefix is not invited to this party π
β list
Lists Guard plugins that can be used with the init command.
π -T, show
List defined groups and Guard plugins for the current Guardfile.
π -h, help [COMMAND]
List all of GuardΒ΄s available commands.
If COMMAND is given, displays a specific help for TASK.
π₯ EXAMPLES π₯
Initialize Guard and a specific Guard plugin at the same time:
[bundle exec] guard init [rspec]
Run Guard:
[bundle exec] guard [start] --watchdir ~/dev --guardfile ~/env/Guardfile
--clear --group backend frontend --notify false --debug
or in a more concise way:
[bundle exec] guard [start] -w ~/dev -G ~/env/Guardfile -c -g backend
frontend -n f -d
look at those long flags and short flags living their best lives. both valid. both iconic. π
π AUTHORS / CONTRIBUTORS π
Thibaud Guillaume-Gentil is the main author. π
A list of contributors based on all commits can be found here: https://github.com/guard/guard/contributors
πΈ CHANGELOG πΈ
The changelog can be found at: https://github.com/guard/guard/blob/master/CHANGELOG.md
This manual has been written by Remy Coutable.
π WWW π
and that's the whole page, bestie!! this manual dropped way back in November 2014 and it's still out here doing the most for GUARD(1) β the version and date are literally at the bottom of the original, so consider this your cute little sign-off. go watch some files. slay. π β¨π¦
π¦ where this page comes from
- debian bookworm: ruby-guard 2.18.0-3 Β· MIT
- debian trixie: ruby-guard 2.18.1-3 Β· MIT
- fedora 43: rubygem-guard 2.18.0-9.fc43 Β· MIT
- ubuntu jammy: ruby-guard 2.18.0-1 Β· MIT
- ubuntu noble: ruby-guard 2.18.1-3 Β· MIT
- ubuntu resolute: ruby-guard 2.18.1-3 Β· MIT
- ubuntu stonking: ruby-guard 2.20.2-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms