File: ronn

package info (click to toggle)
ruby-ronn 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: ruby: 1,587; sh: 22; makefile: 9
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