Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

West unable to disable west command Extensions defined in Zephyr #78398

Open
solsbarry opened this issue Sep 13, 2024 · 1 comment
Open

West unable to disable west command Extensions defined in Zephyr #78398

solsbarry opened this issue Sep 13, 2024 · 1 comment
Labels
area: West West utility Enhancement Changes/Updates/Additions to existing features

Comments

@solsbarry
Copy link
Contributor

solsbarry commented Sep 13, 2024

Is your enhancement proposal related to a problem? Please describe.

There does not seem to be a way to disable the west extensions provided by zephyr at scripts/west-commands.yml. Regardless of whether I include west-commands: scripts/west-commands.yml in my west.yml file. They seem to be automatically included.

Describe the solution you'd like

I would like to be able to disable the west extensions provided by zephyr, so that I could reuse one of the names (flash for example) in my own version of the command. I think the best solution would be if the zephyr west command extensions were only included if you included them via the manifest. But I would also be fine with alternative solutions such as adding something to disable them in either the manifest or the global .westconfig file. If I am wrong and there is a way please let me know. I did not see anything in this page https://docs.zephyrproject.org/latest/develop/west/extensions.html . It might also be nice if you could disable only specific commands from a west-commands.yml file selectively.

Describe alternatives you've considered

The only alternative for me is not using west to do the activities I need, and using my own script that calls west, or naming my extensions something less intuitive like flash2 instead of flash for example. But I don't need to change flash for all my projects just one, so I would rather keep the same workflow.

Additional context

N/A

@solsbarry solsbarry added the Enhancement Changes/Updates/Additions to existing features label Sep 13, 2024
@pdgendt
Copy link
Collaborator

pdgendt commented Sep 13, 2024

A bit of a strange request, but west aliases could be useful here (not yet released). You can override existing commands where you can set the flash command as an alias to a custom command inside your own project.

west config alias.flash myflash

@henrikbrixandersen henrikbrixandersen added the area: West West utility label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: West West utility Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

3 participants