guardian
Version, currently 0.0.25 versions
- 0.0.5latestOct 17, 2018
- 0.0.4not indexedDec 5, 2023
- 0.0.3not indexedDec 5, 2023
- 0.0.2not indexedDec 5, 2023
- 0.0.1not indexedDec 5, 2023
github.com/f/guardian
Guardian watches over your files and run assigned tasks.
280 stars
0 dependents
License: MIT
Nothing has been indexed for 0.0.2 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
guardian:
github: f/guardian
version: ~> 0.0.2Then run:
shards installshard.yml
No shard.yml has been indexed for 0.0.2. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# 💂 Guardian.cr Guardian watches over your files and runs assigned tasks.  ## Installation ### OS X ```bash brew tap f/guardian brew install guardian ``` ### From Source ```bash git clone https://github.com/f/guardian.git && cd guardian crystal build src/guardian.cr --release ``` ## Quickstart ### Crystal Libs Guardian works seamless with Crystal Projects. It automatically binds itself to library you use. ```bash $ crystal init lib yourlib $ cd yourlib $ guardian --init Created .guardian.yml of ./src/yourlib.cr ``` ### Non-Crystal Libs You can use Guardian for other projects. ```bash $ guardian --init Created .guardian.yml ``` ## Usage ```bash $ guardian --init ``` It will create a `.guardian.yml` file to use by Guardian. ## `.guardian.yml` `.guardian.yml` is a simple YAML file. Simply it has **YAML documents** with seperated by `---` line and each document has `files` and `run` keys. `files` key needs a glob pattern, and `run` is a shell command what to run. ```yaml files: ./**/*.cr run: crystal build ./src/guardian.cr --- files: ./shard.yml run: crystal deps ``` ### `%file%` Variable Guardian replaces `%file%` variable in commands with the changed file. ```yaml files: ./**/*.txt run: echo "%file% is changed" ``` Think you have a `hello.txt` in your directory, and Guardian will run `echo "hello.txt is changed"` command when it's changed. ## Running Guardian ```bash $ guardian 💂 Guardian is on duty! ``` ## Contributing 1. Fork it ( https://github.com/f/guardian/fork ) 2. Create your feature branch (git checkout -b my-new-feature) 3. Commit your changes (git commit -am 'Add some feature') 4. Push to the branch (git push origin my-new-feature) 5. Create a new Pull Request ## Contributors - [f](https://github.com/f) Fatih Kadir Akın - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.0.2- Tagged
- Dec 5, 2023
- Commit
6b6ce609b329- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/f/guardian
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 5