Comparing version
@@ -5,20 +5,5 @@ #!/usr/bin/env node | ||
const Program = require('commander'); | ||
const Vorpal = require('vorpal'); | ||
Program | ||
.version('1.0.0') | ||
.arguments('<cmd> [options...]') | ||
.option('-t, --title <n>', 'Snippet title') | ||
.option('-l, --language <n>', 'Snippet language') | ||
.action((cmd, options) => { | ||
try { | ||
require(`../cli/${cmd}`)[cmd](options, Program); | ||
} | ||
catch (e) { | ||
console.log(`Command ${cmd} does not exists`); | ||
} | ||
}) | ||
.parse(process.argv); | ||
require('../src/bootstrap').bootstrap(new Vorpal()); | ||
{ | ||
"name": "glot-cli", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "CLI tool for glot.io", | ||
@@ -19,6 +19,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"commander": "^2.9.0", | ||
"copy-paste": "^1.1.4", | ||
"progress": "^1.1.8", | ||
"superagent": "^1.8.3" | ||
"superagent": "^1.8.3", | ||
"vorpal": "^1.10.10" | ||
}, | ||
@@ -25,0 +25,0 @@ "bugs": { |
# glot-cli | ||
[](https://npmjs.org/package/glot-cli) | ||
`glot-cli` is a CLI tool for [https://glot.io](https://glot.io). | ||
@@ -26,2 +29,2 @@ | ||
For now it only supports a list of files, wildcard will be coming soon. | ||
For now it only supports a list of files, wildcard will be coming soon. |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
6584
19.25%9
28.57%126
28.57%30
15.38%3
50%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed