mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 07:26:39 +00:00
33 lines
672 B
TypeScript
33 lines
672 B
TypeScript
/**
|
|
* Heirarchical conversation example
|
|
*/
|
|
|
|
'use strict';
|
|
import inquirer from 'inquirer';
|
|
|
|
class RunOrDownload {
|
|
public static async handle(_args) {
|
|
const answers = await inquirer.prompt([
|
|
{
|
|
choices: ['Open the app!', 'Download it for FREE'],
|
|
message: 'Your XGENE desktop app is not open - do you want to ?',
|
|
name: 'action',
|
|
type: 'rawlist'
|
|
}
|
|
]);
|
|
|
|
switch (answers.action) {
|
|
case 'Open app!':
|
|
break;
|
|
|
|
case 'Download it for FREE':
|
|
console.log(
|
|
'wget(https://xgene.cloud/download?latest=true) to Downloads'
|
|
);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
export default RunOrDownload;
|