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

View File

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