Skip to content

Commit 3cd0335

Browse files
committed
dist/tools/zsh-completion: Add completion for DOCKER_IMAGE
1 parent ead434d commit 3cd0335

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dist/tools/zsh-completion/zsh-riot.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
OPENOCD_SCRIPTS_PATH=${OPENOCD_SCRIPTS_PATH:-/usr/share/openocd/scripts/}
2+
DOCKER=${DOCKER:-docker}
23

34
function _boards {
45
local -a _boards_available
@@ -85,6 +86,11 @@ function _ftdi_adapter {
8586
_describe 'ftdi_adapter' _adapter_vals
8687
}
8788

89+
function _docker_image {
90+
local -a _docker_image_vals=($("$DOCKER" image ls --format '{{.Repository}}'))
91+
_describe 'docker_image' _docker_image_vals
92+
}
93+
8894
function _riot {
8995
local -a _std_targets=(
9096
"all:build the application"
@@ -130,6 +136,7 @@ function _riot {
130136
'BOARD[Select the board to build for]:board:_boards'
131137
'TOOLCHAIN[Select the toolchain to use]:toolcahin:_toolchains'
132138
'BUILD_IN_DOCKER[Build inside docker container]:bool:_bools'
139+
'DOCKER_IMAGE[The docker image to use with BUILD_IN_DOCKER=1]:docker_image:_docker_image'
133140
'LTO[Enable link time optimization]:bool:_bools'
134141
'VERBOSE_ASSERT[Print source file and line on blown assertion]:bool:_bools'
135142
'QUIET[Reduce verbosity of build output]:bool:_bools'

0 commit comments

Comments
 (0)