Skip to content

Commit 36b2ab0

Browse files
committed
Add support for 'mtree' output format in output functions
1 parent 69b6245 commit 36b2ab0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/include/outputFns.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ var _outputFns = new Map([
6868
["tree", (r, options) => {
6969
_o$o(r, options)
7070
}],
71+
["mtree", (r, options) => {
72+
if (typeof __flags.TREE.mono == "undefined") options.__format = "ctree"
73+
_o$o(r, options)
74+
}],
7175
["res", (r, options) => {
7276
_o$o(r, options)
7377
}],

src/include/utilFns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const _$o = (r, options, lineByLine) => {
120120
if (isDef(params.outkey)) r = $$({}).set(params.outkey, r)
121121

122122
_clearTmpMsg()
123-
if (isUnDef(nOptions.__format)) nOptions.__format = getEnvsDef("OAFP_OUTPUT", nOptions.__format, "tree")
123+
if (isUnDef(nOptions.__format)) nOptions.__format = getEnvsDef("OAFP_OUTPUT", nOptions.__format, "mtree")
124124
if (_outputFns.has(nOptions.__format)) {
125125
_outputFns.get(nOptions.__format)(r, nOptions)
126126
} else {

0 commit comments

Comments
 (0)