# service completions

_salpack_nw() {
	COMPREPLY=()
	cur=${COMP_WORDS[COMP_CWORD]}
	prev="${COMP_WORDS[COMP_CWORD-1]}"
	cmd="${COMP_WORDS[1]}"
	#COMPREPLY=( $(compgen -W "$(salpack-nw complete ${COMP_CWORD} ${COMP_WORDS[@]})" $cur) )
	COMPREPLY=( $(salpack-nw complete ${COMP_CWORD} ${COMP_WORDS[@]}) )
	#case "$cmd" in
	#	start|stop|restart|reload|status|files|run|end|enable|disable)
        #                COMPREPLY=( $(ssrv list --short "$cur*") )
	#		return 0
	#		;;
	#	edit)
	#		COMPREPLY=( --skip-start )
	#		return 0
	#		;;
	#	*)
        #                COMPREPLY=( $(compgen -W "$(_ssrv_cmds)" $cur) )
	#		return 0
	#		;;
	#esac
}
complete -F _salpack_nw nw
