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
1 changed files with 3 additions and 3 deletions

View File

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