shell/zsh: use first param to get task idx
This commit is contained in:
parent
6a31732d1b
commit
11557e1de2
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue