Skip to content

Commit

Permalink
feat(app): add user field to root generator
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 23, 2024
1 parent 6986b61 commit ea47cc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class AppGenerator extends Generator<AppOptions> {
private generator: GeneratorInterface | undefined = undefined;
private readonly choices = GeneratorFactory.getAvailable();
public abort: boolean = false;
public user: string | undefined = undefined;

constructor(args: string | Array<string>, options: AppOptions) {
super(args, options);
Expand All @@ -50,6 +51,8 @@ class AppGenerator extends Generator<AppOptions> {
}

public async initializing(): Promise<void> {
this.user = await GitHelper.getGitUserName(this);

this.log(
yosay(
`Welcome to the\n${chalk.bold.magenta(
Expand Down

0 comments on commit ea47cc5

Please sign in to comment.