更改文件名

更改CLI文件为Generator文件名,突出当前文件的作用为生成器
This commit is contained in:
Titor 2021-03-03 14:29:48 +08:00
parent c5298edeaf
commit 42ba4cffe3
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
import { Cli } from "../extend/cli"; import { Generator } from "../extend/generator";
import * as os from "os"; import * as os from "os";
import { error, info, readonly, success } from "../extend/console"; import { error, info, readonly, success } from "../extend/console";
import { exec } from "child_process"; import { exec } from "child_process";
@ -6,7 +6,7 @@ import ora from "ora";
import { join } from "path"; import { join } from "path";
// Koa 命令行 // Koa 命令行
export class Koa extends Cli { export class Koa extends Generator {
// @ts-ignore // @ts-ignore
protected answers: { protected answers: {
appName: string; appName: string;

View File

@ -3,7 +3,7 @@ import { file as fs } from "./file";
import ejs from "ejs"; import ejs from "ejs";
import { join, resolve, sep } from "path"; import { join, resolve, sep } from "path";
abstract class Cli { abstract class Generator {
protected answers: {} | null = null; protected answers: {} | null = null;
protected RUN: string; // RUN: 项目初始化目录 protected RUN: string; // RUN: 项目初始化目录
@ -68,4 +68,4 @@ abstract class Cli {
} }
export { Cli }; export { Generator };