dev: use forgejo-cli (fj) instead of tea
This commit is contained in:
parent
6cb4a9e401
commit
77dc6788f0
4 changed files with 10 additions and 12 deletions
|
|
@ -4,7 +4,7 @@ set -euo pipefail
|
|||
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "${root}"
|
||||
|
||||
# Forgejo CLI: `tea` (Gitea-compatible)
|
||||
# Forgejo CLI: `fj`
|
||||
#
|
||||
# Auth token source order:
|
||||
# 1) CODEBERG_TOKEN env var
|
||||
|
|
@ -21,7 +21,7 @@ if [[ -z "${CODEBERG_TOKEN:-}" ]]; then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
# Name the login "codeberg" and point at https://codeberg.org.
|
||||
tea login add --name codeberg --url https://codeberg.org --token "${CODEBERG_TOKEN}" --insecure=false
|
||||
echo "tea configured. Try: tea repo ls"
|
||||
# Avoid passing the token on the command line (shows up in process listings); use stdin.
|
||||
printf "%s" "${CODEBERG_TOKEN}" | fj -H https://codeberg.org auth add-key every-channel
|
||||
echo "fj configured. Try: fj -H https://codeberg.org whoami"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue