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 list: add option to not list project and return != 0 if project is not active when project list is provided #645

Open
aescolar opened this issue Mar 24, 2023 · 1 comment
Labels
enhancement New feature or request Partial imports Incomplete or changing imports are much more complicated than you think

Comments

@aescolar
Copy link
Member

west list, by default, lists only projects which are active in the local workspace.
But if one queries for one particular project, it always lists it, even if not active.
So for users who want to know if the project is present, and if so, get some of its parameters,
it would be nice if west list returned != 0 to the shell if one of the requested projects was missing, and would not list it in stdout, when some new command line switch is provided (say something like --only-active).

Today, it seems the way to achieve what is requested here would be to first do a west status for the projects and then a west list.

@marc-hb marc-hb added enhancement New feature or request Partial imports Incomplete or changing imports are much more complicated than you think labels Mar 24, 2023
@mbolivar-nordic
Copy link
Contributor

Today, it seems the way to achieve what is requested here

You could do something like this today:

if [ $(west list -f {cloned} "$PROJECT") = cloned ] ; then ... ; fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Partial imports Incomplete or changing imports are much more complicated than you think
Projects
None yet
Development

No branches or pull requests

3 participants