File: pdal

package info (click to toggle)
pdal 1.8.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 203,324 kB
  • sloc: cpp: 501,008; sh: 11,840; python: 3,263; xml: 2,389; makefile: 603; sql: 26; perl: 19
file content (20 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# PDAL commandline completion for bash
# See http://www.gnu.org/software/bash/manual/bash.html#Programmable-Completion-Builtins

_pdal()
{
	local cur cmds
    
	COMPREPLY=()
	cur=${COMP_WORDS[COMP_CWORD]}
	cmds=$(pdal --list-commands)

	if [ $COMP_CWORD -eq 1 ]; then
		COMPREPLY=( $(compgen -o filenames -W "$cmds" $cur) )
  else
		COMPREPLY=( $(compgen -o filenames -G "${cur}*") )
	fi

	return 0
}
complete -F _pdal pdal