obi ls: improved taxonomy list
This commit is contained in:
@ -42,9 +42,12 @@ def run(config):
|
|||||||
else:
|
else:
|
||||||
print(repr(input[1]))
|
print(repr(input[1]))
|
||||||
if input[2] == DMS:
|
if input[2] == DMS:
|
||||||
print("\n### Taxonomies:")
|
taxolist = ["\n### Taxonomies:"]
|
||||||
for t in Taxonomy.list_taxos(input[0]):
|
for t in Taxonomy.list_taxos(input[0]):
|
||||||
print("\t", tostr(t))
|
taxolist.append("\t"+tostr(t))
|
||||||
|
if len(taxolist) > 1:
|
||||||
|
for t in taxolist:
|
||||||
|
print(t)
|
||||||
if config['ls']['longformat'] and len(input[1].comments) > 0:
|
if config['ls']['longformat'] and len(input[1].comments) > 0:
|
||||||
print("\n### Comments:")
|
print("\n### Comments:")
|
||||||
print(str(input[1].comments))
|
print(str(input[1].comments))
|
||||||
|
Reference in New Issue
Block a user