#!/usr/bin/env node import { helpers, termost } from "termost"; type ProgramContext = { globalFlag: string; }; type DebugCommandContext = { localFlag: string; }; const program = termost<ProgramContext>("CLI example", { onException(error) { console.error(`Error logic ${error.message}`); }, onShutdown() { console.log("Clean-up logic"); }, }); program.option({ key: "globalFlag", name: { long: "global