.\" Man page for e2-ls-project
.\"
-.\" (c)2007, 2012 emlix GmbH
+.\" (c)2007-2016 emlix GmbH
.\"
-.TH e2-ls-project 1 "Oct 16, 2012" "@VERSION@"
+.TH e2-ls-project 1 "@VERSION@"
.SH NAME
e2-ls-project \- show project information of an e2factory project
.BR \-\-swap
Swaps the direction of the graphs.
.TP
+.BR \-\-chroot
+Also show chroot groups.
+.TP
+.BR \-\-env
+Also show env variables.
+.TP
For further global options, see \fBe2factory\fR(1).
.TP
.BR \-\-check
.BR e2factory (1)
.SH COPYRIGHT
-(c)2013 emlix GmbH
+(c)2007-2016 emlix GmbH
e2option.flag("dot-sources", "generate dot(1) graph with sources included")
e2option.flag("swap", "swap arrow directions in dot graph")
e2option.flag("all", "show unused results and sources, too")
+ e2option.flag("chroot", "show chroot groups as well")
+ e2option.flag("env", "show environment vars as well")
local opts, arguments = e2option.parse(arg)
if not opts then
for _, resultname in pairs(results) do
local res = result.results[resultname]
- if res:isInstanceOf(result.result_class) then
- for sourcename in res:sources_list():iter_sorted() do
- if not yet[sourcename] then
- table.insert(sources, sourcename)
- yet[sourcename] = true
- end
+ for sourcename in res:sources_list():iter_sorted() do
+ if not yet[sourcename] then
+ table.insert(sources, sourcename)
+ yet[sourcename] = true
end
end
end
else
console.infof(" \"%s\"\n", r)
end
- if opts["dot-sources"] and res:isInstanceOf(result.result_class) then
+ if opts["dot-sources"] then
for src in res:sources_list():iter_sorted() do
if opts.swap then
console.infof(" \"%s-src\" %s \"%s\"\n", src, arrow, r)
s2 = "|"
end
- for _,at in ipairs(res:attribute_table({env = true, chroot=true})) do
+ local flagt = { env = opts.env, chroot = opts.chroot }
+ for _,at in ipairs(res:attribute_table(flagt)) do
p3(s1, s2, unpack(at))
end
end