Skip to content

Commit

Permalink
Jai/hyp 2491 prettify hyp cli (#17)
Browse files Browse the repository at this point in the history
* prettify logo

* .

* .

* .
  • Loading branch information
jairad26 authored Oct 24, 2024
1 parent 9aa0c87 commit 203de59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/custom/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function getHeader(cliVersion: string): string {
let out = ''
out += getLogo()
out += '\n'
out += `Modus CLI v${cliVersion}`
out += `Hypermode CLI v${cliVersion}`
out += '\n'
return out
}
8 changes: 3 additions & 5 deletions src/custom/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import chalk from 'chalk'

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

const CLI_VERSION = '0.0.0'

export default class CustomHelp extends Help {
private postPad = 0
private prePad = 0
Expand Down Expand Up @@ -54,7 +52,7 @@ export default class CustomHelp extends Help {
formatRoot(): string {
let out = ''
out
+= chalk.bold.blueBright('Hypermode') + ' - Build Intelligent APIs. ' + chalk.dim('(v' + CLI_VERSION + ')') + '\n\n'
+= chalk.bold.blueBright('Hypermode') + ' - Build Intelligent APIs. \n\n'

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

out += '\n'
out += 'Made with 💖 by ' + chalk.magentaBright('https://hypermode.com/')
out += 'Made with ♥︎ by Hypermode'
return out
}

formatTopic(topic: Interfaces.Topic): string {
let out = ''
out += chalk.bold.blueBright('Hypermode') + ' Help ' + chalk.dim('(v' + CLI_VERSION + ')') + '\n\n'
out += chalk.bold.blueBright('Hypermode') + ' Help \n\n'
if (topic.description) out += chalk.dim(topic.description) + '\n'

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

0 comments on commit 203de59

Please sign in to comment.