This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}")" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
def cli(): | |
@command | |
def hello(*args): | |
cmd('echo', 'Hello', *args) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
commands=( | |
salute | |
) | |
function salute {( | |
echo "Hello ${1}!" | |
)} |