alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
25 lines (22 loc) • 705 B
text/typescript
import { $inject } from "alepha";
import { $command } from "alepha/command";
import { ChangelogCommand } from "./gen/changelog.ts";
import { GenEnvCommand } from "./gen/env.ts";
import { OpenApiCommand } from "./gen/openapi.ts";
export class GenCommand {
protected readonly changelog = $inject(ChangelogCommand);
protected readonly openapi = $inject(OpenApiCommand);
protected readonly genEnv = $inject(GenEnvCommand);
public readonly gen = $command({
name: "gen",
description: "Generate code, documentation, ...",
children: [
this.changelog.command,
this.openapi.command,
this.genEnv.command,
],
handler: async ({ help }) => {
help();
},
});
}