mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
sync
This commit is contained in:
@@ -13,7 +13,8 @@ export const AuthCommand = cmd({
|
||||
yargs
|
||||
.command(AuthLoginCommand)
|
||||
.command(AuthLogoutCommand)
|
||||
.command(AuthListCommand),
|
||||
.command(AuthListCommand)
|
||||
.demandCommand(),
|
||||
async handler(args) {},
|
||||
})
|
||||
|
||||
|
||||
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user