Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/asp.in
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-11 21:16:32 -0500
committerDave Reisner <dreisner@archlinux.org>2017-03-12 09:45:41 -0400
commit82951aafc58d0ea4529387bd180d28a664506743 (patch)
tree6c2a289ead565689b39584bd6a3218ee0d5a7554 /asp.in
parent291ebc3c5ff22c62b035a457b750de226724ceac (diff)
add ls-files subcommand, allow showing files other than PKGBUILD
Diffstat (limited to 'asp.in')
-rw-r--r--asp.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/asp.in b/asp.in
index 53e6cff..15b2387 100644
--- a/asp.in
+++ b/asp.in
@@ -34,8 +34,9 @@ Commands:
list-arches NAME... List architectures for packages
list-local List tracked packages
list-repos NAME... List repos for packages
+ ls-files NAME List files for package
log NAME Show revision history
- show NAME Show the PKGBUILD
+ show NAME [FILE] Show the PKGBUILD or other FILE
shortlog NAME Show revision history in short form
update [NAME...] Update packages (update all tracked if none specified)
untrack NAME... Remove a package from the local repository
@@ -256,8 +257,8 @@ action__shortlog() {
}
action__show() {
- __require_argc 1
- package_show_pkgbuild "$1"
+ __require_argc 1-2
+ package_show_file "$@"
}
action__untrack() {
@@ -269,6 +270,12 @@ action__update() {
update_packages "$@"
}
+action__ls-files() {
+ __require_argc 1
+
+ package_list_files "$1"
+}
+
dispatch_action() {
local a candidates=()
local actions=(
@@ -282,6 +289,7 @@ dispatch_action() {
list-arches
list-local
list-repos
+ ls-files
log
shortlog
show
@@ -348,4 +356,3 @@ done
shift $(( OPTIND - 1 ))
dispatch_action "$@"
-