Lines Matching full:commands

6 West is "pluggable": you can add your own commands to west without editing its
7 source code. These are called **west extension commands**, or just "extensions"
10 information on west extension commands, and has a tutorial for writing your
13 Some commands you can run when using west with Zephyr, like the ones used to
20 commands from project at "zephyr":
30 See :file:`zephyr/scripts/west-commands.yml` and the
33 Disabling Extension Commands
36 To disable support for extension commands, set the ``commands.allow_extensions``
42 west config --global commands.allow_extensions false
49 west config --local commands.allow_extensions true
51 Note that the files containing extension commands are not imported by west
52 unless the commands are explicitly run. See below for details.
60 #. Add information about it to a :file:`west-commands.yml` file.
61 #. Make sure the :file:`west-commands.yml` file is referenced in the
64 Note that west ignores extension commands whose names are the same as a
74 This file must contain a subclass of the ``west.commands.WestCommand`` class;
89 from west.commands import WestCommand # your extension must subclass this
135 Step 2: Add or Update Your :file:`west-commands.yml`
138 You now need to add a :file:`west-commands.yml` file to your project which
146 west-commands:
148 commands:
153 The top level of this YAML file is a map with a ``west-commands`` key. The
164 source, then use other west commands without your code being imported along
172 :file:`west-commands.yml` file to get the basic information it needs to display
176 multiple files, your :file:`west-commands.yml` will look something like this:
180 west-commands:
182 commands:
187 commands:
203 See the file :file:`west-commands-schema.yml` in the `west repository`_ for a
204 schema describing the contents of a :file:`west-commands.yml`.
209 Finally, you need to specify the location of the :file:`west-commands.yml` you
220 west-commands: path/to/west-commands.yml
223 Where :file:`path/to/west-commands.yml` is relative to the root of the project.
224 Note that the name :file:`west-commands.yml`, while encouraged, is just a
236 west-commands: path/to/west-commands.yml