Discussion:
[Bash-completion-commits] [bash-completion] branch master updated (c89dcbb -> aa404ca)
Ville Skyttä
2015-10-06 21:29:13 UTC
Permalink
This is an automated email from the git hooks/post-receive script.

scop-guest pushed a change to branch master
in repository bash-completion.

from c89dcbb Load completions also from $XDG_DATA_DIRS (RedHat: #1264094)
new 7669f0c chronyc: Add -6 option
new ef26136 chronyc: Add missing subcommands
new bc03de5 chronyc: Update help text parsing
new aa404ca chronyc: Wrap long lines

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
completions/chronyc | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
Ville Skyttä
2015-10-06 21:29:19 UTC
Permalink
This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 7669f0c1bece8f4a344d8e22f7d4969f8f141c10
Author: Miroslav Lichvar <***@redhat.com>
Date: Tue Oct 6 17:44:58 2015 +0200

chronyc: Add -6 option

The chronyc -6 option needs to be listed explicitly as _parse_usage()
doesn't pick it from the usage text "[-4|-6]".
---
completions/chronyc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/completions/chronyc b/completions/chronyc
index 3544c75..c3cfdaa 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -16,7 +16,7 @@ _chronyc()
esac

if [[ $cur == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( _parse_usage "$1" ) -6' -- "$cur" ) )
return
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
Ville Skyttä
2015-10-06 21:29:21 UTC
Permalink
This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit ef26136ea3f4fcf123c1a4af741be625fbac1a05
Author: Miroslav Lichvar <***@redhat.com>
Date: Tue Oct 6 17:44:59 2015 +0200

chronyc: Add missing subcommands
---
completions/chronyc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/completions/chronyc b/completions/chronyc
index c3cfdaa..b95308f 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -52,11 +52,14 @@ _chronyc()
COMPREPLY=( $( compgen -W 'off stratum' -- "$cur" ) )
;;
manual)
- COMPREPLY=( $( compgen -W 'list on off reset' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'list on off reset delete' -- "$cur" ) )
;;
sources|sourcestats)
COMPREPLY=( $( compgen -W '-v' -- "$cur" ) )
;;
+ smoothtime)
+ COMPREPLY=( $( compgen -W 'reset activate' -- "$cur" ) )
+ ;;
esac
;;
2)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
Ville Skyttä
2015-10-06 21:29:22 UTC
Permalink
This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit bc03de502c3d8391ee220a3a28ed964db8c5e73a
Author: Miroslav Lichvar <***@redhat.com>
Date: Tue Oct 6 17:45:00 2015 +0200

chronyc: Update help text parsing

In chrony-2.2 the chronyc help text formating was changed, the command
descriptions now may be on muliple lines and the commands are divided in
sections.
---
completions/chronyc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/completions/chronyc b/completions/chronyc
index b95308f..7a5f5f6 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -28,7 +28,7 @@ _chronyc()
case $args in
0)
COMPREPLY=( $( compgen -W "$( $1 help 2>/dev/null | \
- awk 'NR > 1 { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
+ awk '!/(^ |: *$)/ { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
;;
1)
case $prev in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
Ville Skyttä
2015-10-06 21:29:24 UTC
Permalink
This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit aa404ca17d3838b18669e006ab30446cb402988b
Author: Ville Skyttä <***@iki.fi>
Date: Wed Oct 7 00:29:00 2015 +0300

chronyc: Wrap long lines
---
completions/chronyc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/completions/chronyc b/completions/chronyc
index 7a5f5f6..ddbbbb9 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -28,7 +28,8 @@ _chronyc()
case $args in
0)
COMPREPLY=( $( compgen -W "$( $1 help 2>/dev/null | \
- awk '!/(^ |: *$)/ { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
+ awk '!/(^ |: *$)/ { sub("\\|", " ", $1); print $1 }' )" \
+ -- "$cur" ) )
;;
1)
case $prev in
@@ -52,7 +53,8 @@ _chronyc()
COMPREPLY=( $( compgen -W 'off stratum' -- "$cur" ) )
;;
manual)
- COMPREPLY=( $( compgen -W 'list on off reset delete' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'list on off reset delete' \
+ -- "$cur" ) )
;;
sources|sourcestats)
COMPREPLY=( $( compgen -W '-v' -- "$cur" ) )
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
Loading...