Skip to content

Commit

Permalink
Complete completion
Browse files Browse the repository at this point in the history
Change-Id: Ia560fa22d769ef770c149481fae0d4dedb320d78
Reviewed-on: http://gerrit.aldebaran.lan/57847
Tested-by: gerrit
Reviewed-by: ncornu <ncornu@aldebaran.com>
  • Loading branch information
Nicolas Cornu committed May 7, 2015
1 parent a28e656 commit 7675dd6
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions contrib/zsh/_qibuild
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ _qibuild_commands() {
init:'Initialize a new qibuild worktree.'
install:'Install a project and its dependencies.'
list:'List the name and path of every buildable project.'
list-binaries:'List every all the binaries in the given worktree.'
list-configs:'List all the known configs.'
list-profiles:'List the known profiles of the given worktree.'
make:'Build a project.'
open:'Open a project with an IDE.'
package:'Generate a binary package, ready to be added in a toolchain.'
Expand Down Expand Up @@ -77,7 +79,7 @@ _qibuild-add-config() {
$qibuild_logging \
$qibuild_debug \
"(-t --toolchain)"{-t,--toolchain}"[The toolchain to use.]:Toolchains:(($(qitoolchain list | grep '^*' | cut -c3-)))" \
"(-p --profile)"{-p=,--profile=}"[The profile to use.]" \
"(-p --profile)"{-p,--profile}"[The profile to use.]:Profiles:(($(qibuild list-profiles | grep "*" | cut -c5-)))" \
"(-G --cmake-generator)"{-G=,--cmake-generator=}"[The cmake generator to use.]" \
"--ide=[Ide to use.]" \
"--default" \
Expand Down Expand Up @@ -251,6 +253,15 @@ _qibuild-list() {
&& return
}

_qibuild-list-binaries() {
local curcontext=$curcontext state line ret=1
declare -A opt_args
_arguments \
$qibuild_logging \
$qibuild_debug \
&& return
}

_qibuild-list-configs() {
local curcontext=$curcontext state line ret=1
declare -A opt_args
Expand All @@ -260,16 +271,25 @@ _qibuild-list-configs() {
&& return
}

_qibuild-list-profiles() {
local curcontext=$curcontext state line ret=1
declare -A opt_args
_arguments \
$qibuild_logging \
$qibuild_debug \
&& return
}

_qibuild-make() {
local curcontext=$curcontext state line ret=1
declare -A opt_args
_arguments \
$qibuild_logging \
$qibuild_debug \
$qibuild_configs \
$qibuild_projects \
"(-r --rebuild)"{-r,--rebuild}"[Rebuild.]" \
"--coverity[Build using cov-build. Ensure you have cov-analysis installed on your machine.]" \
$qibuild_projects \
&& return
}

Expand Down

0 comments on commit 7675dd6

Please sign in to comment.