#!/usr/bin/env bash

# {{ managedText | raw }}

set -eu

# Disable Git hooks.
function git-hooks:off {
  git config --unset core.hooksPath
}

# Enable Git hooks.
function git-hooks:on {
  git config core.hooksPath .githooks
}

# Display a list of all available commands.
function help {
  printf "%s <task> [args]\n\nTasks:\n" "${0}"

  compgen -A function | grep -v "^_" | cat -n

  printf "\nExtended help:\n  Each task has comments for general usage\n"
}

TIMEFORMAT=$'\nTask completed in %3lR'
time "${@:-help}"

# vim: ft=bash