Skip to content

Commit

Permalink
help options for inputs, outputs and transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Feb 11, 2024
1 parent bf4440c commit 18946a3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/include/inputFns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var _inputFns = new Map([
["?" , (_res, options) => {
_res = Array.from(_inputFns.keys()).filter(r => r != '?').sort()
_$o(_res, options)
}],
["pm" , (_res, options) => {
_showTmpMsg()
if (isDef(__pm._map)) _res = __pm._map
Expand Down
4 changes: 4 additions & 0 deletions src/include/outputFns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
var _outputFns = new Map([
["?" , (r, options) => {
r = Array.from(_outputFns.keys()).filter(r => r != '?').sort()
$o(r, options)
}],
["pm", (r, options) => {
$o(r, options)
}],
Expand Down
6 changes: 6 additions & 0 deletions src/include/transformFns.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
var _transformFns = {
"transforms" : _r => {
if (toBoolean(params.transforms)) {
var _t = Object.keys(_transformFns).filter(r => r != 'transforms').sort()
return _t
}
},
"sortmapkeys" : _r => {
if (toBoolean(params.sortmapkeys) && isObject(_r)) {
let _sortMapKeys = (aMap, moreLevels) => {
Expand Down

0 comments on commit 18946a3

Please sign in to comment.