Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/lib/startupBanner.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import { Config, ProcessorName, SUPPORTED_PROCESSORS } from "./config";

const ASCII_BANNER = [
" _ _ _ _ ",
" (_)_ __ ___ _ __ | | ___ (_) __| |",
" | | '_ ` _ \\| '_ \\| |/ _ \\| |/ _` |",
" | | | | | | | |_) | | (_) | | (_| |",
" |_|_| |_| |_| .__/|_|\\___/|_|\\__,_|",
" |_| ",
] as const;

export interface StartupBannerOptions {
version?: string;
description?: string;
Expand Down Expand Up @@ -93,6 +102,8 @@ export function buildStartupBanner(
const version = options.version ?? "unknown";

const lines = [
...ASCII_BANNER,
"",
`imploid v${version} - ${options.description}`,
"",
formatRepoLine(config),
Expand Down
14 changes: 14 additions & 0 deletions tests/startupBanner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ describe("buildStartupBanner", () => {
});

expect(lines).toEqual([
" _ _ _ _ ",
" (_)_ __ ___ _ __ | | ___ (_) __| |",
" | | '_ ` _ \\| '_ \\| |/ _ \\| |/ _` |",
" | | | | | | | |_) | | (_) | | (_| |",
" |_|_| |_| |_| .__/|_|\\___/|_|\\__,_|",
" |_| ",
"",
"imploid v1.2.3 - Coordinates Claude and Codex to work GitHub issues in parallel.",
"",
"Repos: 3 configured -> hey/mobile-app, hey/marketing-site, +1 more (cache: ~/.imploid/repos)",
Expand Down Expand Up @@ -69,6 +76,13 @@ describe("buildStartupBanner", () => {
const lines = buildStartupBanner(config);

expect(lines).toEqual([
" _ _ _ _ ",
" (_)_ __ ___ _ __ | | ___ (_) __| |",
" | | '_ ` _ \\| '_ \\| |/ _ \\| |/ _` |",
" | | | | | | | |_) | | (_) | | (_| |",
" |_|_| |_| |_| .__/|_|\\___/|_|\\__,_|",
" |_| ",
"",
"imploid vunknown - undefined",
"",
"Repos: none configured (run imploid --config)",
Expand Down