next-porto-cli
Version:
A cli for next.js to scaffold your application using porto architecture
35 lines (34 loc) • 943 B
TypeScript
import 'module-alias/register';
import * as Listr from 'listr';
import { Command } from '@oclif/core';
export default class Project extends Command {
static strict: boolean;
static description: string;
static tasks: Listr | undefined;
static args: {
name: string;
required: boolean;
description: string;
}[];
static flags: {
typescript: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
};
/**
* Initialize Tasks
* @param _args project name argument
* @param _flags check for typescript flag
* @returns new Listr Object
*/
initTaskList(_args: {
[name: string]: any;
}, _flags?: {
typescript: boolean;
force: boolean;
}): Listr;
/**
* * Run the command (create:project)
* @returns void
*/
run(): Promise<void>;
}