1.0.3 • Published 5 months ago

nv-cli-if-constexpr-mirr v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

nv-cli-if-constexpr-mirr

install

  • npm install nv-cli-if-constexpr-mirr -g

usage

Usage: nv_cli_if_constexpr_mirr [options] 
Options:
    -n, --name                   
    -i, --input                 dict .such as { k:v, k1:v1....}
    -o, --output                output string,default stdout
    -h, --help                  usage

example

		# nv-cli-if-constexpr-mirr -n func_name 

		{ k:v, k1:v1}

		//press ctrl+D
		static constexpr auto func_name(auto o) {
		    if constexpr      (o == "k" ) { return("v" );}
		    else if constexpr (o == "v" ) { return("k" );}
		    else if constexpr (o == "k1") { return("v1");}
		    else                         {
			return("k1");
		    }
		};

LICENSE

  • ISC
1.0.3

5 months ago