1
0
This commit is contained in:
syui 2024-02-24 21:46:59 +09:00
parent b0bd67b279
commit bd562b631f
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 16 additions and 0 deletions

View File

@ -14,6 +14,7 @@ source $d/refresh.zsh
source $d/token.zsh source $d/token.zsh
source $d/reply.zsh source $d/reply.zsh
source $d/notify.zsh source $d/notify.zsh
source $d/notify_cid.zsh
source $d/cron.zsh source $d/cron.zsh
case $1 in case $1 in
@ -32,4 +33,7 @@ case $1 in
cron|c) cron|c)
cron cron
;; ;;
cid)
cid
;;
esac esac

12
test/notify_cid.zsh Normal file
View File

@ -0,0 +1,12 @@
function cid(){
dd=${d:h}
ai=$dd/target/debug/ai
f=$dd/.config/ai/txt/notify_cid
if [ ! -f $ai ];then
cd $dd
cargo build
fi
$ai n|jq -r ".[]|.[]?.cid" >> $f.txt
cp -rf $f.txt ${f}_run.txt
}