Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

532 B
Raw Blame
import type { Ui } from "../../render/ui.js";

export type UsedWorkspace = {
  readonly id: string;
  readonly name: string;
  readonly slug: string;
  readonly role: string | null;
  readonly description: string | null;
};

export function renderWorkspaceUsed(
  ui: Ui,
  result: { readonly workspace: UsedWorkspace },
): string[] {
  const { theme, glyphs } = ui;
  return [
    "",
    `  ${theme.success(glyphs.tick)} Using ${theme.strong(result.workspace.name)}`,
    `    ${theme.muted(result.workspace.id)}`,
    "",
  ];
}