ai/at
ai/at
1
0
This commit is contained in:
syui 2024-11-28 04:48:55 +09:00
parent 199a908ead
commit 1512a1452f
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

7
at.zsh
View File

@ -113,6 +113,10 @@ function at-refresh() {
unset t token refresh unset t token refresh
} }
function at-version() {
curl -sL ${host}/xrpc/_health |jq .
}
at-env at-env
case $1 in case $1 in
uri|u) uri|u)
@ -133,6 +137,9 @@ case $1 in
refresh|r) refresh|r)
at-refresh at-refresh
;; ;;
version|v)
at-version
;;
*) *)
echo "${help[@]}" echo "${help[@]}"
echo "${host[@]}" echo "${host[@]}"