@zendesk/zcli-themes
Version:
zcli theme commands live here
23 lines (22 loc) • 757 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const path = require("path");
const migrate_1 = require("../../lib/migrate");
class Migrate extends core_1.Command {
async run() {
const { flags, argv: [themeDirectory] } = await this.parse(Migrate);
const themePath = path.resolve(themeDirectory);
await (0, migrate_1.default)(themePath, flags);
}
}
exports.default = Migrate;
Migrate.description = 'migrate theme to the latest version of the templating api';
Migrate.hidden = true;
Migrate.args = [
{ name: 'themeDirectory', required: true, default: '.' }
];
Migrate.examples = [
'$ zcli themes:migrate ./copenhagen_theme'
];
Migrate.strict = false;