Comparing version 1.1.0 to 1.1.1
@@ -9,3 +9,3 @@ const path = require('path'); | ||
const questions = [ | ||
{ type: 'confirm', name: 'tf', message: 'Are you sure to delete the Dex8 Task?', default: false } | ||
{ type: 'confirm', name: 'tf', message: 'Are you sure you want to delete the DEX8 Task?', default: false } | ||
]; | ||
@@ -12,0 +12,0 @@ |
const path = require('path'); | ||
const fse = require('fs-extra'); | ||
const inquirer = require('inquirer'); | ||
@@ -7,6 +8,12 @@ | ||
const questions = [ | ||
{ type: 'list', name: 'template', message: 'Please select a DEX8 Task template', choices: ['basic', 'puppeteer'], default: false } | ||
]; | ||
try { | ||
const answers = await inquirer.prompt(questions); | ||
// copy task_template folder taskTitle folder | ||
await fse.ensureDir(taskTitle); | ||
const sourceDir = path.join(__dirname, './task_templates/t1'); | ||
const sourceDir = path.join(__dirname, 'task_templates', answers.template); | ||
const destDir = path.join(process.cwd(), taskTitle); | ||
@@ -13,0 +20,0 @@ await fse.copy(sourceDir, destDir); |
@@ -60,3 +60,3 @@ /** | ||
/**** 6) Fetch input library ****/ | ||
/**** 6) Fetch library ****/ | ||
let library; | ||
@@ -63,0 +63,0 @@ if (!!library_selected) { |
{ | ||
"name": "dex8-cli", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"title": "DEX8 CLI", | ||
@@ -5,0 +5,0 @@ "description": "Dex8 CLI is a command line interface which helps developers to create and run dex8.com tasks (automated serverless scripts).", |
@@ -101,3 +101,3 @@ # DEX8 CLI | ||
## Documentation | ||
Documentation is available at [https://www.dex8.com/docs/cli](https://www.dex8.com/docs/cli) . | ||
Documentation is available at [https://www.dex8.com/docs/lib/dex8-cli](https://www.dex8.com/docs/lib/dex8-cli) . | ||
@@ -104,0 +104,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93839
38
2183
5