nv-cli-jparam-combo
v1.0.2
Published
nv-cli-param-combo ========== - cli-tool, iterate all possible param-combos of a sub function, only support json-value - for test f-signature in nvlang
Downloads
1
Readme
nv-cli-param-combo
- cli-tool, iterate all possible param-combos of a sub function, only support json-value
- for test f-signature in nvlang
install
- npm install nv-cli-jparam-combo -g
usage
Usage: nv_cli_jparam_combo [options]
Options:
-a, --is_async async function or not
-f, --fname parent function name
-i, --input input param opts must be json,default stdin
-o, --output output ,default stdout
-h, --help usage
example
//for example , we have a function tst(a,b,c,d) imported from @FROM@
// possible value of a IS [100,200,300]
// possible value of b IS ["b0","b1"]
// possible value of c IS ["c3","c4"]
// possible value of d IS [true,false]
nv-cli-jparam-combo# nv_cli_jparam_combo -f tst
{
"a": [100,200,300],
"b": ["b0","b1"],
"c": ["c3","c4"],
"d": [true,false]
}
// press ctrl+D
const {tst} = require("@FROM@");
module.exports = {
"{"type":"param","input":[]}" : ()=> {return(tst(null,null,null,null))},
"{"type":"param","input":["a"]}" : (a)=> {return(tst(a,null,null,null))},
"{"type":"arg","args":[100,null,null,null]}" : ()=> {return(tst(100,null,null,null))},
"{"type":"arg","args":[200,null,null,null]}" : ()=> {return(tst(200,null,null,null))},
"{"type":"arg","args":[300,null,null,null]}" : ()=> {return(tst(300,null,null,null))},
"{"type":"param","input":["b"]}" : (b)=> {return(tst(null,b,null,null))},
"{"type":"arg","args":[null,"b0",null,null]}" : ()=> {return(tst(null,"b0",null,null))},
"{"type":"arg","args":[null,"b1",null,null]}" : ()=> {return(tst(null,"b1",null,null))},
"{"type":"param","input":["a","b"]}" : (a,b)=> {return(tst(a,b,null,null))},
"{"type":"arg","args":[100,"b0",null,null]}" : ()=> {return(tst(100,"b0",null,null))},
"{"type":"arg","args":[100,"b1",null,null]}" : ()=> {return(tst(100,"b1",null,null))},
"{"type":"arg","args":[200,"b0",null,null]}" : ()=> {return(tst(200,"b0",null,null))},
"{"type":"arg","args":[200,"b1",null,null]}" : ()=> {return(tst(200,"b1",null,null))},
"{"type":"arg","args":[300,"b0",null,null]}" : ()=> {return(tst(300,"b0",null,null))},
"{"type":"arg","args":[300,"b1",null,null]}" : ()=> {return(tst(300,"b1",null,null))},
"{"type":"param","input":["b","a"]}" : (b,a)=> {return(tst(a,b,null,null))},
"{"type":"param","input":["c"]}" : (c)=> {return(tst(null,null,c,null))},
"{"type":"arg","args":[null,null,"c3",null]}" : ()=> {return(tst(null,null,"c3",null))},
"{"type":"arg","args":[null,null,"c4",null]}" : ()=> {return(tst(null,null,"c4",null))},
"{"type":"param","input":["a","c"]}" : (a,c)=> {return(tst(a,null,c,null))},
"{"type":"arg","args":[100,null,"c3",null]}" : ()=> {return(tst(100,null,"c3",null))},
"{"type":"arg","args":[100,null,"c4",null]}" : ()=> {return(tst(100,null,"c4",null))},
"{"type":"arg","args":[200,null,"c3",null]}" : ()=> {return(tst(200,null,"c3",null))},
"{"type":"arg","args":[200,null,"c4",null]}" : ()=> {return(tst(200,null,"c4",null))},
"{"type":"arg","args":[300,null,"c3",null]}" : ()=> {return(tst(300,null,"c3",null))},
"{"type":"arg","args":[300,null,"c4",null]}" : ()=> {return(tst(300,null,"c4",null))},
"{"type":"param","input":["c","a"]}" : (c,a)=> {return(tst(a,null,c,null))},
"{"type":"param","input":["b","c"]}" : (b,c)=> {return(tst(null,b,c,null))},
"{"type":"arg","args":[null,"b0","c3",null]}" : ()=> {return(tst(null,"b0","c3",null))},
"{"type":"arg","args":[null,"b0","c4",null]}" : ()=> {return(tst(null,"b0","c4",null))},
"{"type":"arg","args":[null,"b1","c3",null]}" : ()=> {return(tst(null,"b1","c3",null))},
"{"type":"arg","args":[null,"b1","c4",null]}" : ()=> {return(tst(null,"b1","c4",null))},
"{"type":"param","input":["c","b"]}" : (c,b)=> {return(tst(null,b,c,null))},
"{"type":"param","input":["a","b","c"]}" : (a,b,c)=> {return(tst(a,b,c,null))},
"{"type":"arg","args":[100,"b0","c3",null]}" : ()=> {return(tst(100,"b0","c3",null))},
"{"type":"arg","args":[100,"b0","c4",null]}" : ()=> {return(tst(100,"b0","c4",null))},
"{"type":"arg","args":[100,"b1","c3",null]}" : ()=> {return(tst(100,"b1","c3",null))},
"{"type":"arg","args":[100,"b1","c4",null]}" : ()=> {return(tst(100,"b1","c4",null))},
"{"type":"arg","args":[200,"b0","c3",null]}" : ()=> {return(tst(200,"b0","c3",null))},
"{"type":"arg","args":[200,"b0","c4",null]}" : ()=> {return(tst(200,"b0","c4",null))},
"{"type":"arg","args":[200,"b1","c3",null]}" : ()=> {return(tst(200,"b1","c3",null))},
"{"type":"arg","args":[200,"b1","c4",null]}" : ()=> {return(tst(200,"b1","c4",null))},
"{"type":"arg","args":[300,"b0","c3",null]}" : ()=> {return(tst(300,"b0","c3",null))},
"{"type":"arg","args":[300,"b0","c4",null]}" : ()=> {return(tst(300,"b0","c4",null))},
"{"type":"arg","args":[300,"b1","c3",null]}" : ()=> {return(tst(300,"b1","c3",null))},
"{"type":"arg","args":[300,"b1","c4",null]}" : ()=> {return(tst(300,"b1","c4",null))},
"{"type":"param","input":["a","c","b"]}" : (a,c,b)=> {return(tst(a,b,c,null))},
"{"type":"param","input":["b","a","c"]}" : (b,a,c)=> {return(tst(a,b,c,null))},
"{"type":"param","input":["c","a","b"]}" : (c,a,b)=> {return(tst(a,b,c,null))},
"{"type":"param","input":["b","c","a"]}" : (b,c,a)=> {return(tst(a,b,c,null))},
"{"type":"param","input":["c","b","a"]}" : (c,b,a)=> {return(tst(a,b,c,null))},
"{"type":"param","input":["d"]}" : (d)=> {return(tst(null,null,null,d))},
"{"type":"arg","args":[null,null,null,false]}" : ()=> {return(tst(null,null,null,false))},
"{"type":"arg","args":[null,null,null,true]}" : ()=> {return(tst(null,null,null,true))},
"{"type":"param","input":["a","d"]}" : (a,d)=> {return(tst(a,null,null,d))},
"{"type":"arg","args":[100,null,null,false]}" : ()=> {return(tst(100,null,null,false))},
"{"type":"arg","args":[100,null,null,true]}" : ()=> {return(tst(100,null,null,true))},
"{"type":"arg","args":[200,null,null,false]}" : ()=> {return(tst(200,null,null,false))},
"{"type":"arg","args":[200,null,null,true]}" : ()=> {return(tst(200,null,null,true))},
"{"type":"arg","args":[300,null,null,false]}" : ()=> {return(tst(300,null,null,false))},
"{"type":"arg","args":[300,null,null,true]}" : ()=> {return(tst(300,null,null,true))},
"{"type":"param","input":["d","a"]}" : (d,a)=> {return(tst(a,null,null,d))},
"{"type":"param","input":["b","d"]}" : (b,d)=> {return(tst(null,b,null,d))},
"{"type":"arg","args":[null,"b0",null,false]}" : ()=> {return(tst(null,"b0",null,false))},
"{"type":"arg","args":[null,"b0",null,true]}" : ()=> {return(tst(null,"b0",null,true))},
"{"type":"arg","args":[null,"b1",null,false]}" : ()=> {return(tst(null,"b1",null,false))},
"{"type":"arg","args":[null,"b1",null,true]}" : ()=> {return(tst(null,"b1",null,true))},
"{"type":"param","input":["d","b"]}" : (d,b)=> {return(tst(null,b,null,d))},
"{"type":"param","input":["a","b","d"]}" : (a,b,d)=> {return(tst(a,b,null,d))},
"{"type":"arg","args":[100,"b0",null,false]}" : ()=> {return(tst(100,"b0",null,false))},
"{"type":"arg","args":[100,"b0",null,true]}" : ()=> {return(tst(100,"b0",null,true))},
"{"type":"arg","args":[100,"b1",null,false]}" : ()=> {return(tst(100,"b1",null,false))},
"{"type":"arg","args":[100,"b1",null,true]}" : ()=> {return(tst(100,"b1",null,true))},
"{"type":"arg","args":[200,"b0",null,false]}" : ()=> {return(tst(200,"b0",null,false))},
"{"type":"arg","args":[200,"b0",null,true]}" : ()=> {return(tst(200,"b0",null,true))},
"{"type":"arg","args":[200,"b1",null,false]}" : ()=> {return(tst(200,"b1",null,false))},
"{"type":"arg","args":[200,"b1",null,true]}" : ()=> {return(tst(200,"b1",null,true))},
"{"type":"arg","args":[300,"b0",null,false]}" : ()=> {return(tst(300,"b0",null,false))},
"{"type":"arg","args":[300,"b0",null,true]}" : ()=> {return(tst(300,"b0",null,true))},
"{"type":"arg","args":[300,"b1",null,false]}" : ()=> {return(tst(300,"b1",null,false))},
"{"type":"arg","args":[300,"b1",null,true]}" : ()=> {return(tst(300,"b1",null,true))},
"{"type":"param","input":["a","d","b"]}" : (a,d,b)=> {return(tst(a,b,null,d))},
"{"type":"param","input":["b","a","d"]}" : (b,a,d)=> {return(tst(a,b,null,d))},
"{"type":"param","input":["d","a","b"]}" : (d,a,b)=> {return(tst(a,b,null,d))},
"{"type":"param","input":["b","d","a"]}" : (b,d,a)=> {return(tst(a,b,null,d))},
"{"type":"param","input":["d","b","a"]}" : (d,b,a)=> {return(tst(a,b,null,d))},
"{"type":"param","input":["c","d"]}" : (c,d)=> {return(tst(null,null,c,d))},
"{"type":"arg","args":[null,null,"c3",false]}" : ()=> {return(tst(null,null,"c3",false))},
"{"type":"arg","args":[null,null,"c3",true]}" : ()=> {return(tst(null,null,"c3",true))},
"{"type":"arg","args":[null,null,"c4",false]}" : ()=> {return(tst(null,null,"c4",false))},
"{"type":"arg","args":[null,null,"c4",true]}" : ()=> {return(tst(null,null,"c4",true))},
"{"type":"param","input":["d","c"]}" : (d,c)=> {return(tst(null,null,c,d))},
"{"type":"param","input":["a","c","d"]}" : (a,c,d)=> {return(tst(a,null,c,d))},
"{"type":"arg","args":[100,null,"c3",false]}" : ()=> {return(tst(100,null,"c3",false))},
"{"type":"arg","args":[100,null,"c3",true]}" : ()=> {return(tst(100,null,"c3",true))},
"{"type":"arg","args":[100,null,"c4",false]}" : ()=> {return(tst(100,null,"c4",false))},
"{"type":"arg","args":[100,null,"c4",true]}" : ()=> {return(tst(100,null,"c4",true))},
"{"type":"arg","args":[200,null,"c3",false]}" : ()=> {return(tst(200,null,"c3",false))},
"{"type":"arg","args":[200,null,"c3",true]}" : ()=> {return(tst(200,null,"c3",true))},
"{"type":"arg","args":[200,null,"c4",false]}" : ()=> {return(tst(200,null,"c4",false))},
"{"type":"arg","args":[200,null,"c4",true]}" : ()=> {return(tst(200,null,"c4",true))},
"{"type":"arg","args":[300,null,"c3",false]}" : ()=> {return(tst(300,null,"c3",false))},
"{"type":"arg","args":[300,null,"c3",true]}" : ()=> {return(tst(300,null,"c3",true))},
"{"type":"arg","args":[300,null,"c4",false]}" : ()=> {return(tst(300,null,"c4",false))},
"{"type":"arg","args":[300,null,"c4",true]}" : ()=> {return(tst(300,null,"c4",true))},
"{"type":"param","input":["a","d","c"]}" : (a,d,c)=> {return(tst(a,null,c,d))},
"{"type":"param","input":["c","a","d"]}" : (c,a,d)=> {return(tst(a,null,c,d))},
"{"type":"param","input":["d","a","c"]}" : (d,a,c)=> {return(tst(a,null,c,d))},
"{"type":"param","input":["c","d","a"]}" : (c,d,a)=> {return(tst(a,null,c,d))},
"{"type":"param","input":["d","c","a"]}" : (d,c,a)=> {return(tst(a,null,c,d))},
"{"type":"param","input":["b","c","d"]}" : (b,c,d)=> {return(tst(null,b,c,d))},
"{"type":"arg","args":[null,"b0","c3",false]}" : ()=> {return(tst(null,"b0","c3",false))},
"{"type":"arg","args":[null,"b0","c3",true]}" : ()=> {return(tst(null,"b0","c3",true))},
"{"type":"arg","args":[null,"b0","c4",false]}" : ()=> {return(tst(null,"b0","c4",false))},
"{"type":"arg","args":[null,"b0","c4",true]}" : ()=> {return(tst(null,"b0","c4",true))},
"{"type":"arg","args":[null,"b1","c3",false]}" : ()=> {return(tst(null,"b1","c3",false))},
"{"type":"arg","args":[null,"b1","c3",true]}" : ()=> {return(tst(null,"b1","c3",true))},
"{"type":"arg","args":[null,"b1","c4",false]}" : ()=> {return(tst(null,"b1","c4",false))},
"{"type":"arg","args":[null,"b1","c4",true]}" : ()=> {return(tst(null,"b1","c4",true))},
"{"type":"param","input":["b","d","c"]}" : (b,d,c)=> {return(tst(null,b,c,d))},
"{"type":"param","input":["c","b","d"]}" : (c,b,d)=> {return(tst(null,b,c,d))},
"{"type":"param","input":["d","b","c"]}" : (d,b,c)=> {return(tst(null,b,c,d))},
"{"type":"param","input":["c","d","b"]}" : (c,d,b)=> {return(tst(null,b,c,d))},
"{"type":"param","input":["d","c","b"]}" : (d,c,b)=> {return(tst(null,b,c,d))},
"{"type":"param","input":["a","b","c","d"]}" : (a,b,c,d)=> {return(tst(a,b,c,d))},
"{"type":"arg","args":[100,"b0","c3",false]}" : ()=> {return(tst(100,"b0","c3",false))},
"{"type":"arg","args":[100,"b0","c3",true]}" : ()=> {return(tst(100,"b0","c3",true))},
"{"type":"arg","args":[100,"b0","c4",false]}" : ()=> {return(tst(100,"b0","c4",false))},
"{"type":"arg","args":[100,"b0","c4",true]}" : ()=> {return(tst(100,"b0","c4",true))},
"{"type":"arg","args":[100,"b1","c3",false]}" : ()=> {return(tst(100,"b1","c3",false))},
"{"type":"arg","args":[100,"b1","c3",true]}" : ()=> {return(tst(100,"b1","c3",true))},
"{"type":"arg","args":[100,"b1","c4",false]}" : ()=> {return(tst(100,"b1","c4",false))},
"{"type":"arg","args":[100,"b1","c4",true]}" : ()=> {return(tst(100,"b1","c4",true))},
"{"type":"arg","args":[200,"b0","c3",false]}" : ()=> {return(tst(200,"b0","c3",false))},
"{"type":"arg","args":[200,"b0","c3",true]}" : ()=> {return(tst(200,"b0","c3",true))},
"{"type":"arg","args":[200,"b0","c4",false]}" : ()=> {return(tst(200,"b0","c4",false))},
"{"type":"arg","args":[200,"b0","c4",true]}" : ()=> {return(tst(200,"b0","c4",true))},
"{"type":"arg","args":[200,"b1","c3",false]}" : ()=> {return(tst(200,"b1","c3",false))},
"{"type":"arg","args":[200,"b1","c3",true]}" : ()=> {return(tst(200,"b1","c3",true))},
"{"type":"arg","args":[200,"b1","c4",false]}" : ()=> {return(tst(200,"b1","c4",false))},
"{"type":"arg","args":[200,"b1","c4",true]}" : ()=> {return(tst(200,"b1","c4",true))},
"{"type":"arg","args":[300,"b0","c3",false]}" : ()=> {return(tst(300,"b0","c3",false))},
"{"type":"arg","args":[300,"b0","c3",true]}" : ()=> {return(tst(300,"b0","c3",true))},
"{"type":"arg","args":[300,"b0","c4",false]}" : ()=> {return(tst(300,"b0","c4",false))},
"{"type":"arg","args":[300,"b0","c4",true]}" : ()=> {return(tst(300,"b0","c4",true))},
"{"type":"arg","args":[300,"b1","c3",false]}" : ()=> {return(tst(300,"b1","c3",false))},
"{"type":"arg","args":[300,"b1","c3",true]}" : ()=> {return(tst(300,"b1","c3",true))},
"{"type":"arg","args":[300,"b1","c4",false]}" : ()=> {return(tst(300,"b1","c4",false))},
"{"type":"arg","args":[300,"b1","c4",true]}" : ()=> {return(tst(300,"b1","c4",true))},
"{"type":"param","input":["a","b","d","c"]}" : (a,b,d,c)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["a","c","b","d"]}" : (a,c,b,d)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["a","d","b","c"]}" : (a,d,b,c)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["a","c","d","b"]}" : (a,c,d,b)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["a","d","c","b"]}" : (a,d,c,b)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["b","a","c","d"]}" : (b,a,c,d)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["b","a","d","c"]}" : (b,a,d,c)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["c","a","b","d"]}" : (c,a,b,d)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["d","a","b","c"]}" : (d,a,b,c)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["c","a","d","b"]}" : (c,a,d,b)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["d","a","c","b"]}" : (d,a,c,b)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["b","c","a","d"]}" : (b,c,a,d)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["b","d","a","c"]}" : (b,d,a,c)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["c","b","a","d"]}" : (c,b,a,d)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["d","b","a","c"]}" : (d,b,a,c)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["c","d","a","b"]}" : (c,d,a,b)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["d","c","a","b"]}" : (d,c,a,b)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["b","c","d","a"]}" : (b,c,d,a)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["b","d","c","a"]}" : (b,d,c,a)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["c","b","d","a"]}" : (c,b,d,a)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["d","b","c","a"]}" : (d,b,c,a)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["c","d","b","a"]}" : (c,d,b,a)=> {return(tst(a,b,c,d))},
"{"type":"param","input":["d","c","b","a"]}" : (d,c,b,a)=> {return(tst(a,b,c,d))},
}
LICENSE
- ISC