Skip to content

Commit

Permalink
refactor(helpers): edit all methods on GitHelper to be public
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 23, 2024
1 parent 466e1e0 commit 6986b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/GitHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import Generator from "yeoman-generator";
import which from "which";

export class GitHelper {
private static async isGitInstalled(): Promise<string | undefined> {
public static async isGitInstalled(): Promise<string | undefined> {
return await which("git").catch(() => undefined);
}

private static async getGitUserName(
public static async getGitUserName(
generator: Generator,
): Promise<string | undefined> {
return await generator.git.name();
}

private static async getGitUserEmail(
public static async getGitUserEmail(
generator: Generator,
): Promise<string | undefined> {
return await generator.git.email();
Expand Down

0 comments on commit 6986b61

Please sign in to comment.