FaC: Das alte Flag von Terminen, die in die Zeiterfassung übernommen worden sind, wird ebenfalls berücksichtigt.
17 lines
310 B
JavaScript
17 lines
310 B
JavaScript
require('./env');
|
|
|
|
var args = process.argv.splice(2);
|
|
var result;
|
|
|
|
if (args[0] === 'env'){
|
|
result = env[args[1]];
|
|
if(result === undefined) { result = ''; }
|
|
if(typeof result === 'object') {
|
|
result = JSON.stringify(result);
|
|
}else{
|
|
result = result.toString();
|
|
}
|
|
}
|
|
|
|
process.stdout.write(result);
|