mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: Bigcapital CLIs.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user