File tree Expand file tree Collapse file tree 1 file changed +74
-2
lines changed
scripts/west_commands/completion Expand file tree Collapse file tree 1 file changed +74
-2
lines changed Original file line number Diff line number Diff line change @@ -590,8 +590,10 @@ __comp_west_completion()
590
590
__comp_west_boards ()
591
591
{
592
592
local boards_args_opts="
593
- --format -f --name -n
594
- --arch-root --board-root
593
+ --format -f
594
+ --name -n
595
+ --arch-root
596
+ --board-root
595
597
"
596
598
597
599
case " $prev " in
@@ -629,6 +631,7 @@ __comp_west_build()
629
631
--board -b
630
632
--build-dir -d
631
633
--target -t
634
+ --test-item -T
632
635
--pristine -p
633
636
--build-opt -o
634
637
"
@@ -665,6 +668,7 @@ __comp_west_build()
665
668
__comp_west_sign ()
666
669
{
667
670
local sign_bool_opts="
671
+ --quiet -q
668
672
--force -f
669
673
--bin --no-bin
670
674
--hex --no-hex
@@ -674,6 +678,7 @@ __comp_west_sign()
674
678
--build-dir -d
675
679
--tool -t
676
680
--tool-path -p
681
+ --tool-data -D
677
682
-B --sbin
678
683
-H --shex
679
684
"
@@ -706,9 +711,14 @@ __comp_west_runner_cmd()
706
711
local runner_bool_opts="
707
712
--context -H
708
713
--skip-rebuild
714
+ --erase
715
+ --no-erase
709
716
"
710
717
local runner_args_opts="
711
718
--build-dir -d
719
+ --domain
720
+ --dev-id -i
721
+ --dt-flash
712
722
--cmake-cache -c
713
723
--runner -r
714
724
--board-dir
@@ -758,6 +768,65 @@ __comp_west_attach()
758
768
__comp_west_runner_cmd
759
769
}
760
770
771
+ __comp_west_spdx ()
772
+ {
773
+ local spdx_bool_opts="
774
+ --init -i
775
+ --analyze-includes
776
+ --include-sdk
777
+ "
778
+
779
+ local spdx_args_opts="
780
+ --build-dir -d
781
+ --namespace-prefix -n
782
+ --spdx-dir -s
783
+ "
784
+
785
+ case " $prev " in
786
+ --spdx-dir|-s|--build-dir|-d)
787
+ __set_comp_dirs
788
+ return
789
+ ;;
790
+ esac
791
+
792
+ case " $cur " in
793
+ -* )
794
+ __set_comp $spdx_bool_opts $spdx_args_opts
795
+ ;;
796
+ * )
797
+ __set_comp_dirs
798
+ ;;
799
+ esac
800
+ }
801
+
802
+ __comp_west_blobs ()
803
+ {
804
+ local blobs_args_opts="
805
+ --format -f
806
+ "
807
+
808
+ case " $prev " in
809
+ list|fetch|clean)
810
+ __set_comp_west_projs
811
+ return
812
+ ;;
813
+ * )
814
+ __set_comp " list fetch clean"
815
+ return
816
+ ;;
817
+ esac
818
+
819
+ case " $cur " in
820
+ -* )
821
+ __set_comp $blobs_args_opts
822
+ ;;
823
+ * )
824
+ __set_comp_dirs
825
+ ;;
826
+ esac
827
+ }
828
+
829
+
761
830
__comp_west ()
762
831
{
763
832
local previous_extglob_setting=$( shopt -p extglob)
@@ -774,6 +843,7 @@ __comp_west()
774
843
status
775
844
forall
776
845
config
846
+ topdir
777
847
help
778
848
)
779
849
@@ -787,6 +857,8 @@ __comp_west()
787
857
debugserver
788
858
attach
789
859
zephyr-export
860
+ spdx
861
+ blobs
790
862
)
791
863
792
864
local cmds=(${builtin_cmds[*]} ${zephyr_ext_cmds[*]} )
You can’t perform that action at this time.
0 commit comments