@launchql/cli
Version:
LaunchQL CLI
13 lines (12 loc) • 491 B
JavaScript
import { LaunchQLProject } from '@launchql/core';
export default async (argv, prompter, _options) => {
const { cwd = process.cwd() } = argv;
const project = new LaunchQLProject(cwd);
if (!project.isInModule()) {
throw new Error('You must run this command inside a LaunchQL module.');
}
if (argv._.length === 0) {
throw new Error('You must provide a package name to install, e.g. `@launchql/base32`');
}
await project.installModules(...argv._);
};