From ce90a6d0528cbf7c310deeedf796c92c4c1b1f41 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Mon, 7 Oct 2024 18:40:29 -0700 Subject: [PATCH] oopsie --- functions/repo.zsh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 functions/repo.zsh diff --git a/functions/repo.zsh b/functions/repo.zsh new file mode 100644 index 0000000..063115c --- /dev/null +++ b/functions/repo.zsh @@ -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 +} +