This repository has been archived on 2025-01-07. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
opdavies.nvim/run

20 lines
381 B
Text
Raw Normal View History

2024-01-25 00:11:51 +00:00
#!/usr/bin/env bash
set -o nounset
set -o pipefail
function build {
nix build --json --no-link --print-build-logs ".#${1:-default}"
}
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="Task completed in %3lR"
time "${@:-help}"