class

Carbon::HookManager

Inherits Reference < Object

Constants

END_DELIMITER = "# <<< CARBON AUTO-VERSION HOOK <<<"
HOOK_BODY = "#{START_DELIMITER}\n# Generated by Carbon. Do not edit this block manually.\nif [ -f \"bin/carbon\" ]; then\n ./bin/carbon bump --hook\nelif [ -f \"bin/carbon.exe\" ]; then\n ./bin/carbon.exe bump --hook\nelif command -v carbon >/dev/null 2>&1; then\n carbon bump --hook\nelif command -v crystal >/dev/null 2>&1; then\n if [ -f \"src/carbon/cli.cr\" ]; then\n crystal run src/carbon/cli.cr -- bump --hook\n elif [ -f \"lib/carbon/src/carbon/cli.cr\" ]; then\n crystal run lib/carbon/src/carbon/cli.cr -- bump --hook\n fi\nfi\n#{END_DELIMITER}"
START_DELIMITER = "# >>> CARBON AUTO-VERSION HOOK >>>"

Class methods

hook_path(repo_root : Path | String = ".") : Path
Source
install(repo_root : Path | String = ".") : Bool
Source
installed?(repo_root : Path | String = ".") : Bool
Source
uninstall(repo_root : Path | String = ".") : Bool
Source