@navikt/aksel
Version:
Aksel command line interface. Codemods and other utilities for Aksel users.
23 lines (22 loc) • 1.12 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.darksideCommand = darksideCommand;
const chalk_1 = __importDefault(require("chalk"));
const commander_1 = require("commander");
const run_tooling_js_1 = require("./run-tooling.js");
const program = new commander_1.Command();
function darksideCommand() {
program.name(`${chalk_1.default.blueBright(`npx @navikt/aksel v8-tokens`)}`);
program
.option("-g, --glob [glob]", "Globbing pattern, overrides --ext! Run with 'noglob' if using zsh-terminal. ")
.option("-e, --ext [ext]", "File extensions to include, defaults to 'js,ts,jsx,tsx,css,scss,less'")
.option("-d, --dry-run", "Dry run, no changes will be made")
.option("-f, --force", "Forcibly run updates without checking git-changes")
.description("Update tool for v8 token updates");
program.parse();
const options = program.opts();
(0, run_tooling_js_1.runTooling)(options, program);
}