shell/zsh: use first param to get task idx

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-20 16:17:55 +03:00
parent 6a31732d1b
commit 11557e1de2
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -3,18 +3,18 @@ function __tas_task_idx() {
}
function __tas_show() {
tas show $(__tas_task_idx "$@")
tas show $(__tas_task_idx "$1")
}
function __tas_start() {
if [[ "$1" != "" ]]; then
tas start $(__tas_task_idx "$@")
tas start $(__tas_task_idx "$1")
fi
}
function __tas_remove() {
if [[ "$1" != "" ]]; then
tas remove $(__tas_task_idx "$@")
tas remove $(__tas_task_idx "$1")
fi
}