1.0.3 • Published 2 years ago
nv-cli-switch v1.0.3
nv-cli-switch
- nv-cli-switch
- cli tool, generate many nested-switch blocks
install
- npm install nv-cli-switch -g
usage
Usage: nv_switch_quick [options]
Options:
-h, --help usage
-m, --maxsize the max-supported nodes,default 10000
-i, --indent indent,default 1 (' ')*1
-d, --depth depth,default 1
-c, --children_count child case count,default 5
-f, --func_wrap wrap in function,default true
example
nv-cli-switch# nv_switch_quick -d 2 -c 3
function _switch(expr00,expr20,expr21,expr22) {
switch(expr00) {
case(/*case-expr*/): {
switch(expr20) {
}
switch(expr21) {
}
switch(expr22) {
}
}
case(/*case-expr*/): {
switch(expr20) {
}
switch(expr21) {
}
switch(expr22) {
}
}
case(/*case-expr*/): {
switch(expr20) {
}
switch(expr21) {
}
switch(expr22) {
}
}
default: {
}
}
}
LICENSE
- ISC