summary refs log tree commit diff stats
path: root/nimsuggest
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-09-04 11:11:15 +0200
committerAraq <rumpf_a@web.de>2017-09-04 11:11:15 +0200
commitc089cf458aef7779effbf3b278f6daae6c4aca5d (patch)
treed0fa655df515a36a2fda31bc999d008a79c226e1 /nimsuggest
parenta5b19ba86cd10c5e5de0d0a0f64fb0441f6f54be (diff)
downloadNim-c089cf458aef7779effbf3b278f6daae6c4aca5d.tar.gz
fixes #6028
Diffstat (limited to 'nimsuggest')
0 files changed, 0 insertions, 0 deletions
tion option (#7669)' href='/ahoang/Nim/commit/tools/nim.bash-completion?h=devel&id=72dfe176f5211f561263984a2df653f16dcf5466'>72dfe176f ^
9d5de76fb ^











1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47











                                                                          
                                                                                                                                   



                                                
                                                                                                                                                                                















                                                                       
                                                                                                                                                                                                                                                                             











                                                   
# bash completion for nim                             -*- shell-script -*-

_nim()
{
 local cur prev words cword split
 _init_completion -s || return

 COMPREPLY=()
 cur=${COMP_WORDS[COMP_CWORD]}

 if [ $COMP_CWORD -eq 1 ] ; then
   # first item - suggest commands
   kw="compile c doc compileToC cc compileToCpp cpp compileToOC objc js e rst2html rst2tex jsondoc buildIndex genDepend dump check"
   COMPREPLY=( $( compgen -W "${kw}" -- $cur ) )
   return 0
 fi
  case $prev in
    --stackTrace|--lineTrace|--threads|-x|--checks|--objChecks|--fieldChecks|--rangeChecks|--boundChecks|--overflowChecks|-a|--assertions|--floatChecks|--nanChecks|--infChecks)
      # Options that require on/off
      [[ "$cur" == "=" ]] && cur=""
      COMPREPLY=( $(compgen -W 'on off' -- "$cur") )
      return 0
    ;;
    --opt)
      [[ "$cur" == "=" ]] && cur=""
      COMPREPLY=( $(compgen -W 'none speed size' -- "$cur") )
      return 0
    ;;
    --app)
      [[ "$cur" == "=" ]] && cur=""
      COMPREPLY=( $(compgen -W 'console gui lib staticlib' -- "$cur") )
      return 0
    ;;
    *)
      kw="-r -p= --path= -d= --define= -u= --undef= -f --forceBuild --opt= --app= --stackTrace= --lineTrace= --threads= -x= --checks= --objChecks= --fieldChecks= --rangeChecks= --boundChecks= --overflowChecks= -a= --assertions= --floatChecks= --nanChecks= --infChecks="
      COMPREPLY=( $( compgen -W "${kw}" -- $cur ) )
      _filedir '@(nim)'
      #$split
      return 0
    ;;
  esac
  return 0

} &&
complete -onospace -F _nim nim

# ex: ts=2 sw=2 et filetypesh