Skip to contentSkip to conversation

tg-completion.bash update

PATCH In review Kirill Smelkov 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

cover tg-completion.bash update

Kirill Smelkov (2):
tg-completion: complete options for tg summary
tg-completion: complete options for tg remote

 contrib/tg-completion.bash |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
#1 lore raw

PATCH 1/2 tg-completion: complete options for `tg summary`

---
 contrib/tg-completion.bash |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
contrib/tg-completion.bash +9 -1
index 67f820e..4d69c05 100755
@@ -376,7 +376,15 @@ _tg_remote ()
 
 _tg_summary ()
 {
-	COMPREPLY=()
+	local cur="${COMP_WORDS[COMP_CWORD]}"
+
+	case "$cur" in
+	*)
+		__tgcomp "
+			--graphviz
+			-t
+		"
+	esac
 }
 
 _tg_update ()
Signature · 1 line
1.6.1.40.g8ea6a
#2 lore raw
In reply to Kirill Smelkov

also sprach Kirill Smelkov <[email protected]> [2009.01.05.1608 +0100]:

Quoted 3 lines

Kirill Smelkov (2):
tg-completion: complete options for tg summary
tg-completion: complete options for tg remote

Pushed; thanks.

Signature · 7 lines
martin | http://madduck.net/ | http://two.sentenc.es/
 
"alles sollte so einfach, wie möglich gemacht sein,
 aber nicht einfacher."
                                                    -- albert einstein
 
spamtraps: [email protected]
#3 lore raw

PATCH 2/2 tg-completion: complete options for `tg remote`

In reply to Kirill Smelkov
---
 contrib/tg-completion.bash |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
contrib/tg-completion.bash +5 -0
index 4d69c05..9641d04 100755
@@ -369,6 +369,11 @@ _tg_remote ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 
 	case "$cur" in
+	-*)
+		__tgcomp "
+			--populate
+		"
+		;;
 	*)
 		__tgcomp "$(__tg_remotes)"
 	esac
Signature · 1 line
1.6.1.40.g8ea6a