2020-05-15 16:53:45 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) Sapphirecode - All Rights Reserved
|
|
|
|
* This file is part of console-app which is released under MIT.
|
|
|
|
* See file 'LICENSE' for full license details.
|
|
|
|
* Created by Timo Hocker <timo@scode.ovh>, May 2020
|
|
|
|
*/
|
|
|
|
|
2020-05-09 21:33:16 +02:00
|
|
|
// @ts-nocheck
|
2020-05-09 19:51:43 +02:00
|
|
|
/* eslint-disable no-console */
|
2020-06-09 21:23:26 +02:00
|
|
|
/* eslint-disable id-match */
|
|
|
|
|
2020-05-09 19:51:43 +02:00
|
|
|
'use strict';
|
|
|
|
|
2020-06-09 21:23:26 +02:00
|
|
|
const {
|
|
|
|
StringOption,
|
|
|
|
BooleanOption,
|
|
|
|
NumberOption,
|
|
|
|
ArrayOption,
|
|
|
|
FolderOption
|
|
|
|
} = require ('./dist/lib/index.js');
|
2020-05-09 19:51:43 +02:00
|
|
|
|
|
|
|
(async () => {
|
2020-06-16 12:52:41 +02:00
|
|
|
/*
|
|
|
|
* const str = await new StringOption ({ name: 'str' })
|
|
|
|
*.parse ();
|
|
|
|
*const bool = await new BooleanOption ({ name: 'bool' })
|
|
|
|
*.parse ();
|
|
|
|
*const num = await new NumberOption ({ name: 'num' })
|
|
|
|
*.parse ();
|
|
|
|
*const arr = await new ArrayOption ({ name: 'arr' })
|
|
|
|
*.parse ();
|
|
|
|
*/
|
2020-06-09 21:23:26 +02:00
|
|
|
const fld = await new FolderOption ({ name: 'fld' })
|
|
|
|
.parse ();
|
|
|
|
|
2020-06-18 13:58:38 +02:00
|
|
|
const data = { /* str, bool, num, arr,*/ fld };
|
2020-06-09 21:23:26 +02:00
|
|
|
|
|
|
|
console.log (data);
|
2020-05-09 19:51:43 +02:00
|
|
|
}) ();
|