Skip to content

Commit

Permalink
refactor: replace string literals with name variable
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Aug 2, 2024
1 parent b6e349b commit 4e2d661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ program.addHelpText("beforeAll", () => {
const builder = new StringBuilder();

builder
.appendLine(figlet.textSync("genlinx"))
.appendLine(figlet.textSync(name))
.appendLine()
.appendLine(`${version}`)
.appendLine(version)
.appendLine("Open source CLI tool for NetLinx projects")
.appendLine(
`Copyright (c) ${new Date().getFullYear()}, Norgate AV Services Limited`,
Expand All @@ -48,7 +48,7 @@ program.addHelpText("afterAll", () => {
.appendLine("===================================================")
.appendLine()
.appendLine("For more help, make sure to check out the man page:")
.appendLine(" $ man genlinx");
.appendLine(` $ man ${name}`);

return builder.toString();
});
Expand Down

0 comments on commit 4e2d661

Please sign in to comment.