Tool to check whether you are ready.
$ git clone repository/which/has/.readyrc/file.git
$ cd $(basename -s .git !:2)
$ ready
Command: dep ... OK
Command: migrate ... OK
git clone [email protected]:utisam/ready.git
cd ready
sudo ./install.sh
Write .readyrc
in your repository.
check_command "dep"
check_command "migrate"
.readyrc
file is a bash script.
In this file, some special functions are avaiable.
check_command
- Check whether the command exists.
- Example:
check_command "dep"
check_eval
- Check the result of
eval
. - Example:
check_eval '[[ "$(git config [email protected]:.insteadOf)" = "https://github.com/" ]]'
- Check the result of
check_npm_package
- Check whether the npm package is installed.
- Example:
check_npm_package "yarn"
check_pkg_config
- Check whether the npm package is installed.
- Example:
check_pkg_config "SDL2"
check_pip_package
- Check whether the python egg is installed.
pip3 freeze
is used in default.- When you use
pip
,READY_PIP_COMMAND=pip
at runtime. - Example:
check_pip_package "sphinx"
check_ruby_gem
- Check whether the ruby gem is installed.
- Example:
check_ruby_gem "bundler"
check_wildcard_localhost
- Check whether the
*.localhost
is resolved to127.0.0.1
- Check whether the