@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
23 lines (21 loc) • 597 B
text/typescript
import type { CommandInstance } from "vorpal";
export const logSection = async (
instance: CommandInstance,
title: string,
work: () => Promise<void>,
) => {
instance.log("");
instance.log(
"==================================================================================",
);
instance.log("🐱 🔧 " + title + "...");
instance.log("");
await work();
instance.log("");
instance.log("✅ " + title + " done!");
instance.log("");
instance.log(
"==================================================================================",
);
instance.log("");
};