From 82951aafc58d0ea4529387bd180d28a664506743 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 11 Mar 2017 21:16:32 -0500 Subject: add ls-files subcommand, allow showing files other than PKGBUILD --- asp.in | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'asp.in') 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 "$@" - -- cgit v1.2.3-54-g00ecf