File: ronn

package info (click to toggle)
ruby-ronn 0.8.0-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 784 kB
  • sloc: ruby: 1,554; sh: 8; makefile: 6
file content (32 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (5)
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
# Bash completion script for ronn(1) from Ronn-NG

_ronn()
{
	local cur prev words cword
	_init_completion -n = || return

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

	case "$prev" in
		--help|--version|-!(-*)'?')
			return
			;;
		-o|--output-dir|-!(-*)e)
			_filedir -d
			return
			;;
	esac

	if [[ "$cur" == -* ]]; then
		COMREPLY=( $( compgen -W '--pipe -m --man -S --server --port -o --output-dir -r --roff -5 --html -f --fragment --markdown --date --manual --organization -w --warnings -W --version --help'))
		return
	fi

	_filedir

	return 0
} &&
complete -F _ronn ronn

# ex: filetype=sh