@tinymce/beehive-flow
Version:
A CLI tool implementing the beehive flow git branching process
17 lines (13 loc) • 434 B
text/typescript
import * as Parser from './args/Parser';
import * as Dispatch from './args/Dispatch';
import { eachAsync } from './utils/OptionUtils';
const main = async () => {
const actualArgs = await Parser.parseProcessArgs();
await eachAsync(actualArgs, Dispatch.dispatch);
};
main().catch((e: unknown) => {
const msg = e instanceof Error ? e.message : JSON.stringify(e);
console.error(msg);
process.exit(1);
});