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 <marti@foundries.io>
This commit is contained in:
parent
f87d618a5c
commit
77e30dc313
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue