@cliz/gpm
Version:
Git Project Manager
19 lines (18 loc) • 609 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const cli_1 = require("@cliz/cli");
const open_1 = require("@cliz/open/lib/core/open");
exports.default = (0, cli_1.defineSubCommand)((createCommand) => {
return createCommand('Project Finder Open')
.argument('[target]', 'custom target', {
default: process.cwd(),
})
.option('-n, --new', 'Force open new instance', {
default: false,
})
.action(async ({ args, options }) => {
await (0, open_1.open)(args.target, {
forceNew: options.new,
});
});
});