nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitls: document projects
[nit.git]
/
src
/
nitls.nit
diff --git
a/src/nitls.nit
b/src/nitls.nit
index
9bfafd7
..
c94dbe2
100644
(file)
--- a/
src/nitls.nit
+++ b/
src/nitls.nit
@@
-215,10
+215,19
@@
if opt_project.value then
if opt_paths.value then
list.add(path)
else
if opt_paths.value then
list.add(path)
else
+ var d = ""
+ var md = p.mdoc_or_fallback
+ if md != null then
+ if tc.opt_no_color.value then
+ d = ": {md.content.first}"
+ else
+ d = ": {md.content.first.green}"
+ end
+ end
if tc.opt_no_color.value then
if tc.opt_no_color.value then
- list.add("{p.name} ({path})")
+ list.add("{p.name}{d} ({path})")
else
else
- list.add("{p.name} ({path.yellow})")
+ list.add("{p.name}{d} ({path.yellow})")
end
end
end
end
end
end