Skip to content

Instantly share code, notes, and snippets.

View sirikon's full-sized avatar
💃

Carlos Fdez. Llamas sirikon

💃
View GitHub Profile
@sirikon
sirikon / taskw.sh
Last active September 8, 2024 13:16
#!/usr/bin/env bash
set -euo pipefail
TASK_VERSION="3.38.0"
TASK_INSTALLER="https://raw.githubusercontent.com/go-task/task/b259edeb65e24f28c41604b9819869aca082d3b6/install-task.sh"
cd "$(dirname "${BASH_SOURCE[0]}")"
task_bin="$(pwd)/.taskw/${TASK_VERSION}/task"
if [ ! -f "${task_bin}" ]; then
sh -c "$(curl "${TASK_INSTALLER}")" \
@sirikon
sirikon / task.py
Last active July 25, 2023 12:09
Task file in Python 3
#!/usr/bin/env python3
def cli():
@command
def hello(*args):
cmd('echo', 'Hello', *args)
@sirikon
sirikon / task.sh
Last active November 12, 2022 20:32
Task file in Bash
#!/usr/bin/env bash
commands=(
salute
)
function salute {(
echo "Hello ${1}!"
)}