mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
392 B
TypeScript
20 lines
392 B
TypeScript
/// <reference types="node" />
|
|
|
|
import yargsInteractive = require("yargs-interactive");
|
|
|
|
const options: yargsInteractive.Option = {
|
|
color: {
|
|
describe: "What is your favorite color?",
|
|
prompt: "always",
|
|
type: "input",
|
|
default: "Blue",
|
|
}
|
|
};
|
|
|
|
yargsInteractive()
|
|
.usage("$0 <command> [args]")
|
|
.interactive(options)
|
|
.then((result: any) => {
|
|
console.log(result);
|
|
});
|