UNPKG

glu-cli

Version:

Git stacked branch management with GitHub integration

22 lines 739 B
import { ListUseCase } from "../../use-cases/list-use-case.js"; import { ListCommitResultFormatter } from "./list-commit-result-formatter.js"; import { BaseCommand } from "../base-command.js"; export class ListCommand extends BaseCommand { listUseCase; constructor(listUseCase) { super(); this.listUseCase = listUseCase; } static create() { const listUseCase = ListUseCase.default(); return new ListCommand(listUseCase); } async run() { const result = await this.listUseCase.execute(); const formatted = ListCommitResultFormatter.format(result); formatted.forEach((line) => { console.log(line); }); } } //# sourceMappingURL=list.js.map