mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
Added color support to taskie.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
73f634318f
commit
7a53e76d85
3 changed files with 64 additions and 2 deletions
|
|
@ -1,11 +1,24 @@
|
|||
nux.use taskie/backend.utils
|
||||
|
||||
nux.use nux.json
|
||||
backend.gogs.list() {
|
||||
local api="$gogs_api_url/repos/$gogs_repository/issues?token=$gogs_api_token"
|
||||
local append_next="&token=$gogs_api_token"
|
||||
|
||||
backend.githublike.get "$api" "$append_next" \
|
||||
| jq -r ".[] | [.number,.state,.title] | @sh"
|
||||
| jq -r ".[] | [.number,.state,(\"#\" + .labels[].name) ,.title] | @sh" \
|
||||
| while read line
|
||||
do
|
||||
eval taskie.issue.display.short $line
|
||||
done
|
||||
}
|
||||
|
||||
argz() {
|
||||
int=0;
|
||||
for arg in "$@"
|
||||
do
|
||||
let int=int+1
|
||||
echo $int $arg
|
||||
done
|
||||
}
|
||||
|
||||
backend.gogs.issue.exists() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue