diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-06-15 15:57:03 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-06-15 15:57:03 +0200 |
| commit | 798dfe2b6468c94896a511ef174a4c28eee8979c (patch) | |
| tree | a31554a8455507f7d53d1981570a0eeac075a902 /src/cli/abrt-cli.bash | |
| parent | 7791e82641596964bf374ce4d8d692c7cc26030b (diff) | |
| download | abrt-798dfe2b6468c94896a511ef174a4c28eee8979c.tar.gz abrt-798dfe2b6468c94896a511ef174a4c28eee8979c.tar.xz abrt-798dfe2b6468c94896a511ef174a4c28eee8979c.zip | |
remove abrt-cli
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/cli/abrt-cli.bash')
| -rw-r--r-- | src/cli/abrt-cli.bash | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/cli/abrt-cli.bash b/src/cli/abrt-cli.bash deleted file mode 100644 index fd0a85f3..00000000 --- a/src/cli/abrt-cli.bash +++ /dev/null @@ -1,50 +0,0 @@ -# bash-completion add-on for abrt-cli(1) -# http://bash-completion.alioth.debian.org/ - -# $1 = additional options for abrt-cli -_abrt_list() -{ - echo $(abrt-cli --list $1 | grep UUID | awk '{print $3}') - return 0 -} - -_abrt_cli() -{ - local cur prev opts - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - opts="--help --version --list --report --delete" - - # - # Complete the arguments to some of the basic commands. - # - case "${prev}" in - --list) - opts="--full" - ;; - --report) - # Include only not-yet-reported crashes. - opts="--always $(_abrt_list)" - ;; - --always) # This is for --report --always - # Include only not-yet-reported crashes. - opts=$(_abrt_list) - ;; - --delete) - opts=$(_abrt_list "--full") - ;; - esac - - COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) - return 0 -} -complete -F _abrt_cli abrt-cli - -# Local variables: -# mode: shell-script -# sh-basic-offset: 4 -# sh-indent-comment: t -# indent-tabs-mode: nil -# End: -# ex: ts=4 sw=4 et filetype=sh
\ No newline at end of file |
