Ignore:
Timestamp:
Sep 5, 2019, 11:07:43 PM (5 years ago)
Author:
g7moreau
Message:
  • Better help command (completion) and add completion on --dataset option
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/project-meta/project-meta.bash_completion

    r185 r411  
    99   prev="${COMP_WORDS[COMP_CWORD-1]}"
    1010
     11   case $prev in
     12      -d|--dataset)
     13         local showlist=$(project-meta dataset-list|awk '{print $1}')
     14         COMPREPLY=($(compgen -W "${showlist}" -- "$cur"))
     15         return 0
     16         ;;
     17
     18      help)
     19         local showlist=$(project-meta help|grep '^ project-meta'|awk '{print $2}')
     20         COMPREPLY=($(compgen -W "${showlist}" -- "$cur"))
     21         return 0
     22         ;;
     23   esac
     24
    1125   if [[ "$cur" == '-*' || $COMP_CWORD -gt 1 ]]
    1226   then
Note: See TracChangeset for help on using the changeset viewer.