fix: Bigcapital CLIs.

This commit is contained in:
Ahmed Bouhuolia
2020-06-02 11:13:10 +02:00
parent 4c03c73a9a
commit 2f959b9353
2 changed files with 4 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ const {
success, success,
log, log,
} = require('./utils'); } = require('./utils');
// const lincenseCommander = require('./license'); const lincenseCommander = require('./license');
// - bigcapital system:migrate:latest // - bigcapital system:migrate:latest
// - bigcapital system:migrate:rollback // - bigcapital system:migrate:rollback
@@ -21,7 +21,7 @@ const {
// - bigcapital tenants:migrate:make // - bigcapital tenants:migrate:make
// - bigcapital system:migrate:make // - bigcapital system:migrate:make
// - bigcapital tenants:list // - bigcapital tenants:list
//
// - bigcapital license:generate // - bigcapital license:generate
// - bigcapital licenses:list // - bigcapital licenses:list

View File

@@ -16,7 +16,7 @@ commander
.command('license:generate <license_period>') .command('license:generate <license_period>')
.description('Generates a new license key.') .description('Generates a new license key.')
.action(async (interval) => { .action(async (interval) => {
try { try {
const sysDb = initSystemKnex(); const sysDb = initSystemKnex();
let repeat = true; let repeat = true;
@@ -52,6 +52,4 @@ commander
log(`ID: ${license.id} | Key: ${license.key} | Interval: ${license.licenseInterval} | Period: ${license.licensePeriod}`); log(`ID: ${license.id} | Key: ${license.key} | Interval: ${license.licenseInterval} | Period: ${license.licensePeriod}`);
}); });
exit(); exit();
}); });
commander.parse(process.argv);