shell/zsh: add remove cmd

Closes #31
This commit is contained in:
Dmitriy Pleshevskiy 2022-08-20 16:14:17 +03:00
parent 862b3218e5
commit 6a31732d1b
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 15 additions and 1 deletions

View file

@ -7,7 +7,15 @@ function __tas_show() {
}
function __tas_start() {
tas start $(__tas_task_idx "$@")
if [[ "$1" != "" ]]; then
tas start $(__tas_task_idx "$@")
fi
}
function __tas_remove() {
if [[ "$1" != "" ]]; then
tas remove $(__tas_task_idx "$@")
fi
}
function __tas_list() {
@ -28,6 +36,11 @@ function taz() {
"start" | "st")
__tas_start "$(__tas_list)"
;;
"remove" | "rm")
__tas_remove "$(__tas_list)"
;;
esac
}

View file

@ -297,6 +297,7 @@ impl SqliteRepo {
return Ok(());
}
// TODO: execute full schema if version is none
if version.is_none() {
run_migration!(self, version = 202208162308);
}