sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
[SM-Discuss] [quill PATCH v2 4/4] libcopy: Sort presented grimoire and section lists
- From: Ismael Luceno <ismael AT sourcemage.org>
- To: Jaka Kranjc <smgl AT lynxlynx.info>
- Cc: Ismael Luceno <ismael AT sourcemage.org>, sm-discuss AT lists.ibiblio.org
- Subject: [SM-Discuss] [quill PATCH v2 4/4] libcopy: Sort presented grimoire and section lists
- Date: Thu, 25 Dec 2014 20:11:43 -0300
Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
---
var/lib/quill/modules/libcopy | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/var/lib/quill/modules/libcopy b/var/lib/quill/modules/libcopy
index a514f70..354913b 100644
--- a/var/lib/quill/modules/libcopy
+++ b/var/lib/quill/modules/libcopy
@@ -20,13 +20,14 @@ function copy_new_to_git()
find "$QUILL_GIT_DIR" -maxdepth 1 -type d |
while read dir; do
[[ -d $dir/.git ]] && basename $dir
- done | column
+ done | sort | column
query_string grimoire "Which of the above is the target git grimoire? "
while ! dir_check "$QUILL_GIT_DIR/$grimoire"; do
query_string grimoire "Which of the above is the target git grimoire? "
done
echo
- find "$QUILL_GIT_DIR/$grimoire" -maxdepth 1 -type d -printf "%P\n" |
column
+ find "$QUILL_GIT_DIR/$grimoire" -maxdepth 1 -type d -printf "%P\n" |
+ sort | column
query_string section "Which section do you want to put it in? "
while ! dir_check "$QUILL_GIT_DIR/$grimoire/$section"; do
query_string section "Which section do you want to put it in? "
--
2.2.1
-
[SM-Discuss] [quill PATCH v2 1/4] quill: Allow specifying source URL on command line,
Ismael Luceno, 12/25/2014
- [SM-Discuss] [quill PATCH v2 2/4] quill: Allow specifying URL as second argument on CLI, Ismael Luceno, 12/25/2014
- [SM-Discuss] [quill PATCH v2 3/4] quill: Allow specifying version on command line when updating, Ismael Luceno, 12/25/2014
- [SM-Discuss] [quill PATCH v2 4/4] libcopy: Sort presented grimoire and section lists, Ismael Luceno, 12/25/2014
Archive powered by MHonArc 2.6.24.