nv-cli-unroll-s0
v1.0.2
Published
nv-cli-unroll-s0 ========== - cli-tool - creat a empty code template for small size loop (sz<=8) - without using parser, just concat string AND lines
Downloads
2
Readme
nv-cli-unroll-s0
- cli-tool
- creat a empty code template for small size loop (sz<=8)
- without using parser, just concat string AND lines
install
- npm install nv-cli-unroll-s0 -g
usage
Usage: nv_cli_unroll_s0 [options]
Options:
-r, --repeat repeat times,default 3
-i, --indent default 4
-h, --help usage
example
#nv_cli_unroll_s0 -r 6
{
let i = 0;
//--------<init>----------
//--------</init>---------
++i;
// case 1
{
}
++i;
// case 2
{
}
++i;
// case 3
{
}
++i;
// case 4
{
}
++i;
// case 5
{
}
++i;
//----------<finish>-------
i /*6*/
//---------</finish>-------
}
LICENSE
- ISC