Skip to content

Commit

Permalink
commands: project: Show remote URLs for projects in 'west list'
Browse files Browse the repository at this point in the history
This came up in #52.

I'm not sure what the appropriate field widths are ({:n}). We could
tweak it later if some fields turn out to be too short/long.

Fixes: #37

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
  • Loading branch information
ulfalizer authored and carlescufi committed Oct 26, 2018
1 parent 4875ba3 commit 63b00e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/west/commands/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ def do_run(self, args, user_args):
log.inf("Manifest path: {}\n".format(_manifest_path(args)))

for project in _all_projects(args):
log.inf('{:15} {:30} {:15} {}'.format(
log.inf('{:14} {:18} {:13} {} {}'.format(
project.name,
os.path.join(project.path, ''), # Add final '/' if missing
project.revision,
project.url,
"(cloned)" if _cloned(project) else "(not cloned)"))


Expand Down

0 comments on commit 63b00e8

Please sign in to comment.