This commit is contained in:
Dax Raad
2025-06-11 19:00:09 -04:00
parent 9b2b610920
commit aab47714c9
3 changed files with 12 additions and 8 deletions

View File

@@ -13,7 +13,8 @@ export const AuthCommand = cmd({
yargs
.command(AuthLoginCommand)
.command(AuthLogoutCommand)
.command(AuthListCommand),
.command(AuthListCommand)
.demandCommand(),
async handler(args) {},
})

View File

@@ -44,19 +44,19 @@ export namespace UI {
blank = true
}
export function logo() {
empty()
export function logo(pad?: string) {
const result = []
for (const row of LOGO) {
print(" ")
if (pad) result.push(pad)
for (let i = 0; i < row.length; i++) {
const color =
i > 18 ? Bun.color("white", "ansi") : Bun.color("gray", "ansi")
const char = row[i]
print(color + char)
result.push(color + char)
}
println()
result.push("\n")
}
empty()
return result.join("").trimEnd()
}
export async function input(prompt: string): Promise<string> {