File: autocomp.bash

package info (click to toggle)
vg 1.30.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 267,848 kB
  • sloc: cpp: 446,974; ansic: 116,148; python: 22,805; cs: 17,888; javascript: 11,031; sh: 5,866; makefile: 4,039; java: 1,415; perl: 1,303; xml: 442; lisp: 242
file content (16 lines) | stat: -rwxr-xr-x 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
_vg_complete()
{
	 local cur prev
	 COMPREPLY=()
	 cur="${COMP_WORDS[COMP_CWORD]}"
	 opts="construct deconstruct view vectorize index find paths align map stats join ids concat kmers sim mod surject msga pileup call genotype compare scrub circularize validate version"
	 
	 if [ $COMP_CWORD -eq 1 ]
	 then
		  COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
	 else
		  COMPREPLY=( $(compgen -W "$(ls)" -- $cur) )
	 fi
	 return 0
}
complete -o nospace -F _vg_complete vg