done
}
-_gbp_buildpackage()
+_gbp-buildpackage()
{
local options=$(_gbp_options buildpackage)
local branch_opts="--git-debian-branch\= --git-upstream-branch\= --git-upstream-tree\="
"$cbdist_opts"
}
-_gbp_dch ()
+_gbp-dch ()
{
local options=$(_gbp_options dch)
local branch_opts="--debian-branch\="
_gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
}
-_gbp_import_orig ()
+_gbp-import-orig ()
{
local options=$(_gbp_options import-orig)
local branch_opts="--debian-branch\= --upstream-branch\="
_gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
}
-_gbp_import_dsc ()
+_gbp-import-dsc ()
{
local options=$(_gbp_options import-dsc)
local branch_opts="--debian-branch\= --upstream-branch\="
_gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
}
-_gbp_import_dscs ()
+_gbp-import-dscs ()
{
local options="$(_gbp_options import-dscs) $(_gbp_options import-dsc)"
local branch_opts="--debian-branch\= --upstream-branch\="
_gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
}
-_gbp_pq ()
+_gbp-pq ()
{
local options=$(_gbp_options pq)
options="$options export import rebase drop apply switch"
_gbp_comp "$options" "" "" "$tristate_opts"
}
-_gbp_pull ()
+_gbp-pull ()
{
local options=$(_gbp_options pull)
local branch_opts="--debian-branch\= --upstream-branch\="
_gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
}
-_gbp_clone ()
+_gbp-clone ()
{
local options=$(_gbp_options clone)
local branch_opts="--debian-branch\= --upstream-branch\="
_gbp_comp "$options" "$branch_opts" "$tag_opts" "$tristate_opts"
}
-_gbp_create_remote_repo ()
+_gbp-create-remote-repo ()
{
local options=$(_gbp_options create-remote-repo)
local branch_opts="--debian-branch\= --upstream-branch\="
if [ -z $command ]; then
COMPREPLY=( $(compgen -W "$commands" -- $cur ) )
else
- func=_gbp_$(echo $command | sed -e 's/-/_/g')
+ func=_gbp-$(echo $command)
$func
fi
}