1
0
forked from a/repotool
This commit is contained in:
a 2025-05-12 12:23:17 -05:00
parent 2252de5fc4
commit 2e8dafded7
No known key found for this signature in database
GPG Key ID: 2F22877AA4DFDADB
2 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ all: dist/repotool
install: dist/repotool repotool.zsh repotool.plugin.zsh
mkdir -p ${REPOTOOL_PATH}/.bin/
install repotool repotool.zsh repotool.plugin.zsh ${REPOTOOL_PATH}/.bin/
install dist/repotool repotool.zsh repotool.plugin.zsh ${REPOTOOL_PATH}/.bin/
src/lib/repotool/stdlib.sh: $(SOURCES_LIBS)
bashly add --source . stdlib -f

View File

@ -43,4 +43,9 @@ case "$1" in
usage:
repo get <repo-name>
EOF
;;
"open")
raw_url=$(git ls-remote --get-url | cut -d '@' -f2 | sed 's/:/\//1')
xdg-open "https://${raw_url}"
;;
esac