diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2022-10-30 14:44:06 +0100 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-05-19 22:27:13 +0200 |
commit | 2a59c32bf4ff117bd02d58a4e3f322b709259f1e (patch) | |
tree | 57b49351cf080b1d4eb85bce76abbba920e61400 /src/lib/repo.sh | |
parent | 77d800eab2419b334cafd94b2e986351919def77 (diff) | |
download | devtools-2a59c32bf4ff117bd02d58a4e3f322b709259f1e.tar.xz |
repo: added command to create a new packaging repository
Diffstat (limited to 'src/lib/repo.sh')
-rw-r--r-- | src/lib/repo.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/repo.sh b/src/lib/repo.sh index 8b8df11..6b3817a 100644 --- a/src/lib/repo.sh +++ b/src/lib/repo.sh @@ -29,6 +29,7 @@ pkgctl_repo_usage() { COMMANDS clone Clone a package repository configure Configure a clone according to distro specs + create Create a new GitLab package repository web Open the packaging repository's website OPTIONS @@ -38,6 +39,7 @@ pkgctl_repo_usage() { $ ${COMMAND} clone libfoo linux libbar $ ${COMMAND} clone --maintainer mynickname $ ${COMMAND} configure * + $ ${COMMAND} create libfoo $ ${COMMAND} web linux _EOF_ } @@ -71,6 +73,14 @@ pkgctl_repo() { pkgctl_repo_configure "$@" exit 0 ;; + create) + _DEVTOOLS_COMMAND+=" $1" + shift + # shellcheck source=src/lib/repo/create.sh + source "${_DEVTOOLS_LIBRARY_DIR}"/lib/repo/create.sh + pkgctl_repo_create "$@" + exit 0 + ;; web) _DEVTOOLS_COMMAND+=" $1" shift |