This commit is contained in:
abs3nt 2024-10-07 18:40:29 -07:00
parent 73101ac33f
commit ce90a6d052
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

31
functions/repo.zsh Normal file
View File

@ -0,0 +1,31 @@
repo() {
case "$1" in
'get' )
repo_get "$2"
;;
'open' )
repo_open
;;
'aur' )
repo_aur "$2"
;;
'list' )
list_repos
;;
'go' | 'goto')
repo_goto "$2"
;;
'new' | 'create')
repo_new "$2"
;;
'help' | "-h" | "-help" | "--help")
repo_help
;;
* )
echo "Unknown command: $1"
repo_help
return 1
;;
esac
}