Initial commit

This commit is contained in:
Marcelo
2025-11-20 15:27:34 -06:00
commit cc72c9fc5d
3221 changed files with 737477 additions and 0 deletions

10
node_modules/cliss/test/specs/fn-cli/index.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
'use strict';
const cliss = require('../../../');
const fn = (param1 = 'defaultParam1', param2) => `${param1}-${param2}`;
cliss(fn, {
help: {
stripAnsi: true
}
});

26
node_modules/cliss/test/specs/fn-cli/specs.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
'use strict';
const tests = [
{
description: 'cli function with no object spec definition',
input: '--param1=A --param2=B',
output: `A-B`
},
{
description: 'Passing in only one argument (using default values)',
input: '--param2=B',
output: `defaultParam1-B`
},
{
input: '--help',
output: `
Options:
--param1
--param2
`
}];
module.exports = tests;