rgen-cli
Version:
A developer CLI for initializing React projects, managing utilities, and scaffolding components, hooks, pages, layouts, routes, and contexts quickly.
14 lines (13 loc) • 465 B
JavaScript
import { Args, Command } from '@oclif/core';
import Store from '../../libs/build-store.js';
export default class MakeStore extends Command {
static args = {
name: Args.string({ description: 'Name of the store', required: true }),
};
static description = 'Generate a React Redux store';
async run() {
const { args } = await this.parse(MakeStore);
const store = new Store(this, args.name);
await store.setup();
}
}