Lines Matching +full:- +full:o

20     set -l tokens (commandline -opc)
41 set -l tokens (commandline -opc)
42 set -l argc (count $argv)
43 set -l max $argv[1]
44 set -l counter 0
46 if test $argc -eq 1
47 if test (math (count $tokens) - 2) -ge $max
60 if $counter -ge $max
77 set -l tokens (commandline -opc)
80 if string match -qr -- "$token*" "$tokens[-1]"
90 set -l tokens (commandline -opc)
94 case '-*'
97 if test $idx -ge 3
98 set -l prv_idx (math $idx - 1)
103 case '-z' '--zephyr-base'
116 set -l tokens (commandline -opc)
117 set -e tokens[1]
121 if contains -- "help" $tokens
126 if contains -- $token $argv
136 set -l tokens (commandline -opc)
137 set -l zephyr_base ""
138 set -l projects
141 if test \("$tokens[$idx]" = "-z"\) -o \("$tokens[$idx]" = "--zephyr-base"\)
142 if set -q $tokens[(math $idx + 1)]
150 set projects (west "-z $zephyr_base" list --format="{name}")
152 set projects (west list --format="{name}")
160 set -l builtin_cmds "init" "create a west repository" \
170 set -l nb_builtin_cmds (count $builtin_cmds)
172 set -l ext_cmds "completion" "display shell completion scripts" \
175 "sign" "sign a Zephyr binary for bootloader chain-loading" \
180 "zephyr-export" "export Zephyr installation as a CMake config package" \
184 set -l nb_ext_cmds (count $ext_cmds)
188 set -l desc_idx (math $idx + 1)
194 set -l desc_idx (math $idx + 1)
200 set -l cwd (pwd)
201 set -l fallback 1
203 if test (count $argv) -eq 2
208 set -l cwd_split (string split '/' $cwd)
211 set -l tmp_path (path normalize /(string join "/" $cwd_split))
213 if test -d $tmp_path/.west
218 if test -z "$tmp_path" -o $tmp_path = "/"
222 set -e cwd_split[-1]
226 if test $fallback -eq 1 -a -n "$ZEPHYR_BASE"
227 west-topdir "$ZEPHYR_BASE" 0
232 set -l west_topdir (__zephyr_west_topdir)
234 set -l config (cat $west_topdir/.west/config)
236 set -l manifest_path ""
237 set -l manifest_file ""
239 set -l in_manifest_group 0
242 if string match -rq '^\s*\[manifest\]\s*$' $line
245 else if string match -rq '^\[.*\]$' $line
250 if test $in_manifest_group -eq 1
251 set -l tmp_manifest_path (string match -r '^path\s*=\s*(\S*)\s*$' $line)[2]
252 if test $status -eq 0
257 set -l tmp_manifest_file (string match -r '^file\s*=\s*(\S*)\s*$' $line)[2]
258 if test $status -eq 0
265 if test -z "$manifest_path" -o -z "$manifest_file"
273 set -l manifest_path $argv[1]
274 set -l manifest_path_hash (echo "$manifest_path" | md5sum | string trim --chars=' -')
280 set -l is_cache_valid 1 # 0: invalid; 1: valid
282 set -l manifest_file (__zephyr_west_manifest_path)
283 set -l manifest_dir (path dirname "$manifest_file")
285 set -l cache_folder (__zephyr_west_get_cache_dir "$manifest_file")
286 set -l cache_file $cache_folder/fish_boards_completion.cache
288 set -l manifest_hash (git --work-tree "$manifest_dir" log -1 --pretty=format:'%H' 2> /dev/null)
290 if test $status -ne 0
295 if test ! -f $cache_file
296 mkdir -p $cache_folder
301 set -l cache_manifest_hash (head -n 1 $cache_file)
303 …if test -z "$manifest_hash" -o -z "$cache_manifest_hash" -o "$manifest_hash" != "$cache_manifest_h…
308 if test $is_cache_valid -eq 0
309 set -l boards (west boards --format="{name}|{qualifiers}|{vendor}" 2> /dev/null)
311 if test $status -eq 0
316 set -l split_b (string split "|" $board)
317 set -l name $split_b[1]
318 set -l qualifiers $split_b[2]
319 set -l vendor $split_b[3]
333 tail -n +2 $cache_file
336 # disable file completion, if an option need it, it should use '--force-files'
337 complete -c west -f
340 complete -c west -n "__zephyr_west_exclude -h --help" -o h -l help -d "show help"
341 complete -c west -o v -l verbose -d "enable verbosity"
342 complete -c west -n "__zephyr_west_exclude -V --version" -o V -l version -d "print version"
343-c west -n "__zephyr_west_exclude -z --zephyr-base; or __zephyr_west_is_last_token -z --zephyr-bas…
346 complete -c west -n __zephyr_west_use_subcommand -ra init -d "create a west workspace"
347 complete -c west -n "__zephyr_west_seen_subcommand_from init" -ra "(__zephyr_west_complete_director…
348 complete -c west -n "__zephyr_west_seen_subcommand_from init; and __zephyr_west_exclude -l --local"…
349 complete -c west -n "__zephyr_west_seen_subcommand_from init" -l mf -l manifest-file -r -d "manifes…
350-c west -n "__zephyr_west_seen_subcommand_from init; and __zephyr_west_exclude -l --local" -o m -l…
351-c west -n "__zephyr_west_seen_subcommand_from init; and __zephyr_west_exclude -m --manifest --mr
354 complete -c west -n __zephyr_west_use_subcommand -ra update -d "update projects described in west m…
355 complete -c west -n "__zephyr_west_seen_subcommand_from update" -ra "(__zephyr_west_complete_projec…
356 complete -c west -n "__zephyr_west_seen_subcommand_from update" -l stats -d "print performance stat…
357 complete -c west -n "__zephyr_west_seen_subcommand_from update" -l name-cache -ra "(__zephyr_west_c…
358 complete -c west -n "__zephyr_west_seen_subcommand_from update" -l path-cache -ra "(__zephyr_west_c…
359 complete -c west -n "__zephyr_west_seen_subcommand_from update" -o f -l fetch -ra "always smart" -d…
360 complete -c west -n "__zephyr_west_seen_subcommand_from update" -o o -l fetch-opt -d "fetch options"
361 complete -c west -n "__zephyr_west_seen_subcommand_from update" -o n -l narrow -d "narrow fetch"
362 complete -c west -n "__zephyr_west_seen_subcommand_from update" -o k -l keep-descendants -d "keep m…
363 complete -c west -n "__zephyr_west_seen_subcommand_from update" -o r -l rebase -d "rebase checked o…
366 complete -c west -n __zephyr_west_use_subcommand -ra list -d "print information about projects"
367 complete -c west -n "__zephyr_west_seen_subcommand_from list; and not __fish_seen_subcommand_from b…
368 complete -c west -n "__zephyr_west_seen_subcommand_from list; and not __fish_seen_subcommand_from b…
369 complete -c west -n "__zephyr_west_seen_subcommand_from list; and not __fish_seen_subcommand_from b…
370 complete -c west -n "__zephyr_west_seen_subcommand_from list; and not __fish_seen_subcommand_from b…
373 complete -c west -n __zephyr_west_use_subcommand -ra manifest -d "manage the west manifest"
374 complete -c west -n "__zephyr_west_seen_subcommand_from manifest" -l resolve -d "resolve into singl…
375 complete -c west -n "__zephyr_west_seen_subcommand_from manifest" -l freeze -d "resolve into single…
376 complete -c west -n "__zephyr_west_seen_subcommand_from manifest" -l validate -d "silently validate…
377 complete -c west -n "__zephyr_west_seen_subcommand_from manifest" -l path -d "print the path to the…
378 complete -c west -n "__zephyr_west_seen_subcommand_from manifest" -o o -l output -rF -d "output fil…
381 complete -c west -n __zephyr_west_use_subcommand -ra diff -d '"git diff" for one or more projects'
382 complete -c west -n "__zephyr_west_seen_subcommand_from diff" -ra "(__zephyr_west_complete_projects…
383 complete -c west -n "__zephyr_west_seen_subcommand_from diff" -o a -l all -d "include inactive proj…
386 complete -c west -n __zephyr_west_use_subcommand -ra status -d '"git status" for one or more projec…
387 complete -c west -n "__zephyr_west_seen_subcommand_from status" -ra "(__zephyr_west_complete_projec…
388 complete -c west -n "__zephyr_west_seen_subcommand_from status" -o a -l all -d "include inactive pr…
391 complete -c west -n __zephyr_west_use_subcommand -ra forall -d "run a command in one or more local …
392 complete -c west -n "__zephyr_west_seen_subcommand_from forall" -ra "(__zephyr_west_complete_projec…
393 complete -c west -n "__zephyr_west_seen_subcommand_from forall" -o c -x -d "command to execute"
394 complete -c west -n "__zephyr_west_seen_subcommand_from forall" -o a -l all -d "include inactive pr…
395 complete -c west -n "__zephyr_west_seen_subcommand_from forall" -o g -l group -x -d "run command on…
398 complete -c west -n __zephyr_west_use_subcommand -ra config -d "get or set config file values"
399 complete -c west -n "__zephyr_west_seen_subcommand_from config" -o l -l list -d "list all options a…
400 complete -c west -n "__zephyr_west_seen_subcommand_from config" -o d -l delete -d "delete an option…
401 complete -c west -n "__zephyr_west_seen_subcommand_from config" -o D -l delete-all -d "delete an op…
402 complete -c west -n "__zephyr_west_seen_subcommand_from config" -l system -d "system-wide file"
403 complete -c west -n "__zephyr_west_seen_subcommand_from config" -l global -d "global user-wide"
404 complete -c west -n "__zephyr_west_seen_subcommand_from config" -l local -d "this workspace's file"
407 complete -c west -n __zephyr_west_use_subcommand -a topdir -d "print the top level directory of the…
410 complete -c west -n __zephyr_west_use_subcommand -ra help -d "get help for west or a command"
411 complete -c west -n "__fish_seen_subcommand_from help; and __zephyr_west_max_args 1" -ra "(__zephyr…
416 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra com…
417 complete -c west -n "__zephyr_west_seen_subcommand_from completion; and __zephyr_west_max_args 1" -
420 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra boa…
421 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -o f -l format -d "format string"
422 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -o n -l name -d "name regex"
423 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -l arch-root -xa "(__zephyr_west_co…
424 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -l board-root -xa "(__zephyr_west_c…
425 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -l soc-root -xa "(__zephyr_west_com…
426 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -l board -xa "(__zephyr_west_comple…
427 complete -c west -n "__zephyr_west_seen_subcommand_from boards" -l board-dir -xa "(__zephyr_west_co…
430 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra bui…
431 complete -c west -n "__zephyr_west_seen_subcommand_from build" -ra "(__zephyr_west_complete_directo…
432 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o b -l board -xa "(__zephyr_west_co…
433 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o d -l build-dir -xa "(__zephyr_wes…
434 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o f -l force -d "ignore errors and …
435 complete -c west -n "__zephyr_west_seen_subcommand_from build" -l sysbuild -d "create multi-domain …
436 complete -c west -n "__zephyr_west_seen_subcommand_from build" -l no-sysbuild -d "do not create mul…
437 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o c -l cmake -d "force a cmake run"
438 complete -c west -n "__zephyr_west_seen_subcommand_from build" -l domain -d "execute build tool (ma…
439 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o t -l target -d "run build system …
440 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o T -l test-item -d "build based on…
441 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o o -l build-opt -d "options to pas…
442 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o n -l just-print -l dry-run -l rec…
443 complete -c west -n "__zephyr_west_seen_subcommand_from build" -o p -l pristine -ra "auto always ne…
446 …mplete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra sign…
447 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o d -l build-dir -ra "(__zephyr_west…
448 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o q -l quiet -d "suppress non-error …
449 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o f -l force -d "ignore errors and c…
450 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o t -l tool -ra "imgtool rimage" -d …
451 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o p -l tool-path -ra "(__zephyr_west…
452 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o P -l tool-data -ra "(__zephyr_west…
453 complete -c west -n "__zephyr_west_seen_subcommand_from sign; and __zephyr_west_exclude --no-bin" -
454 complete -c west -n "__zephyr_west_seen_subcommand_from sign; and __zephyr_west_exclude --bin" -l n…
455 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o B -l sbin -rF -d "signed .bin file…
456 complete -c west -n "__zephyr_west_seen_subcommand_from sign; and __zephyr_west_exclude --no-hex" -
457 complete -c west -n "__zephyr_west_seen_subcommand_from sign; and __zephyr_west_exclude --hex" -l n…
458 complete -c west -n "__zephyr_west_seen_subcommand_from sign" -o H -l shex -rF -d "signed .hex file…
461 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra fla…
464 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra deb…
467 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra deb…
470 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra att…
473 …plete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -o d -l build
474 …omplete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -o r -l run…
475 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l skip-reb…
476 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l domain -
477 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -o H -l con…
478 …omplete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l board-di…
479 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -o f -l fil…
480 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -o t -l fil…
481 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l elf-file…
482 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l hex-file…
483 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l bin-file…
484 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l gdb -Fr
485 complete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l openocd
486 …plete -c west -n "__zephyr_west_seen_subcommand_from flash debug debugserver attach" -l openocd-se…
488 # zephyr-export
489 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra zep…
492 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra spd…
493 complete -c west -n "__zephyr_west_seen_subcommand_from spdx" -o i -l init -d "initialize CMake fil…
494 complete -c west -n "__zephyr_west_seen_subcommand_from spdx" -o d -l build-dir -ra "(__zephyr_west…
495 complete -c west -n "__zephyr_west_seen_subcommand_from spdx" -o n -l namespace-prefix -rf -d "name…
496 complete -c west -n "__zephyr_west_seen_subcommand_from spdx" -o s -l spdx-dir -ra "(__zephyr_west_…
497 complete -c west -n "__zephyr_west_seen_subcommand_from spdx" -l analyze-includes -d "also analyze …
498 complete -c west -n "__zephyr_west_seen_subcommand_from spdx" -l include-sdk -d "also generate SPDX…
501 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra blo…
502 complete -c west -n "__zephyr_west_seen_subcommand_from blobs; and not __fish_seen_subcommand_from …
503 complete -c west -n "__zephyr_west_seen_subcommand_from blobs; and __fish_seen_subcommand_from list…
504 complete -c west -n "__zephyr_west_seen_subcommand_from blobs; and not __fish_seen_subcommand_from …
507 complete -c west -n "__zephyr_west_use_subcommand; and __zephyr_west_check_if_in_workspace" -ra sdk…
508 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and not __fish_seen_subcommand_from li…
509 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
510 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
511 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
512 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
513 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
514 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
515 …mplete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from install…
516 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…
517 complete -c west -n "__zephyr_west_seen_subcommand_from sdk; and __fish_seen_subcommand_from instal…