mirror of https://github.com/keeweb/keeweb.git
keeweb-plugin package
This commit is contained in:
parent
b78457f356
commit
bd37bbb3c9
|
@ -1,3 +1,5 @@
|
|||
#! /usr/bin/env node
|
||||
|
||||
/**
|
||||
* KeeWeb plugin creator
|
||||
* (C) Antelle 2017, MIT license https://github.com/keeweb/keeweb
|
||||
|
@ -12,6 +14,7 @@ const readline = require('readline');
|
|||
const crypto = require('crypto');
|
||||
|
||||
const args = process.argv.splice(2);
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const op = args.shift();
|
||||
|
||||
|
@ -34,14 +37,14 @@ switch (op) {
|
|||
}
|
||||
|
||||
function showBanner() {
|
||||
console.log('KeeWeb plugin control');
|
||||
console.log(`KeeWeb plugin utils v${pkg.version}`);
|
||||
}
|
||||
|
||||
function showHelp() {
|
||||
rl.close();
|
||||
console.log('Usage:');
|
||||
console.log(' - node kw-plugin-control.js create');
|
||||
console.log(' - node kw-plugin-control.js sign <plugin_name>');
|
||||
console.log(' - node keeweb-plugin create');
|
||||
console.log(' - node keeweb-plugin sign <plugin_name>');
|
||||
}
|
||||
|
||||
function createPlugin() {
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"name": "keeweb-plugin",
|
||||
"version": "0.1.0",
|
||||
"description": "KeeWeb plugin utils",
|
||||
"main": "keeweb-plugin.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "antelle",
|
||||
"license": "MIT",
|
||||
"keywords": ["keeweb"],
|
||||
"bin": {
|
||||
"keeweb-plugin": "keeweb-plugin.js"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue