From 77e30dc313b56c941d8681b6352d9a7c3dc8875e Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Fri, 2 Nov 2018 08:48:53 -0600 Subject: [PATCH] commands: list: accept project arguments Support a list of projects in the arguments. The listed projects will be limited to those named, in the order they are given on the command line. This is the same way that "fetch", "forall", and other commands operate on all projects by default, or just specified projects. Remove the special-case text printing the manifest path. We'll handle that by treating west and the manifest as projects in a later patch. Signed-off-by: Marti Bolivar --- src/west/commands/project.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/west/commands/project.py b/src/west/commands/project.py index 21eb26f..c1f0a10 100644 --- a/src/west/commands/project.py +++ b/src/west/commands/project.py @@ -38,12 +38,10 @@ class List(WestCommand): ''')) def do_add_parser(self, parser_adder): - return _add_parser(parser_adder, self) + return _add_parser(parser_adder, self, _project_list_arg) def do_run(self, args, user_args): - log.inf("Manifest path: {}\n".format(_manifest_path(args))) - - for project in _all_projects(args): + for project in _projects(args): log.inf('{:14} {:18} {:13} {} {}'.format( project.name, project.path,