_s_opts()
{
	local _opts _arg _list

	_opts="start stop restart status logs"
	_list=$(s list 2>/dev/null | awk -vRS=" " '{if (sub(/^yandex-solomon-/, "")) print $1, "solomon-" $1, "yandex-solomon-" $1; else print}')
	_arg=${COMP_WORDS[COMP_CWORD]}

	COMPREPLY=( $(compgen -W "$_opts $_list" -- "$_arg" ) )
}
complete -F _s_opts s
