Skip to content

Commit 203de59

Browse files
authored
Jai/hyp 2491 prettify hyp cli (#17)
* prettify logo * . * . * .
1 parent 9aa0c87 commit 203de59

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/custom/header.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function getHeader(cliVersion: string): string {
1313
let out = ''
1414
out += getLogo()
1515
out += '\n'
16-
out += `Modus CLI v${cliVersion}`
16+
out += `Hypermode CLI v${cliVersion}`
1717
out += '\n'
1818
return out
1919
}

src/custom/help.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import chalk from 'chalk'
33

44
import {getHeader} from './header.js'
55

6-
const CLI_VERSION = '0.0.0'
7-
86
export default class CustomHelp extends Help {
97
private postPad = 0
108
private prePad = 0
@@ -54,7 +52,7 @@ export default class CustomHelp extends Help {
5452
formatRoot(): string {
5553
let out = ''
5654
out
57-
+= chalk.bold.blueBright('Hypermode') + ' - Build Intelligent APIs. ' + chalk.dim('(v' + CLI_VERSION + ')') + '\n\n'
55+
+= chalk.bold.blueBright('Hypermode') + ' - Build Intelligent APIs. \n\n'
5856

5957
// Usage: hyp <command> [...flags] [...args]
6058
out
@@ -78,13 +76,13 @@ export default class CustomHelp extends Help {
7876
// out += "View the repo:" + " ".repeat(Math.max(1, this.pre_pad + this.post_pad - 12)) + chalk.blueBright("https://github.com/HypermodeInc/modus") + "\n";
7977

8078
out += '\n'
81-
out += 'Made with 💖 by ' + chalk.magentaBright('https://hypermode.com/')
79+
out += 'Made with ♥︎ by Hypermode'
8280
return out
8381
}
8482

8583
formatTopic(topic: Interfaces.Topic): string {
8684
let out = ''
87-
out += chalk.bold.blueBright('Hypermode') + ' Help ' + chalk.dim('(v' + CLI_VERSION + ')') + '\n\n'
85+
out += chalk.bold.blueBright('Hypermode') + ' Help \n\n'
8886
if (topic.description) out += chalk.dim(topic.description) + '\n'
8987

9088
out += chalk.bold('Usage: hyp ' + topic.name) + ' ' + chalk.bold.blue('[command]') + '\n'

0 commit comments

Comments
 (0)