UNPKG

jido

Version:

A CLI tool to automate your development workflows using named flows. Simplifies task automation with readable config and plugin support.

17 lines (16 loc) 485 B
import chalk from "chalk"; import { loadConfig } from "../utils/loadConfig.js"; import { flowLogger } from "../utils/flowLogger.js"; export const list = async () => { try { const config = await loadConfig(); const flows = config?.flows; if (!flows || !Array.isArray(flows)) { throw new Error("No flows found in config file."); } flowLogger(flows); } catch (e) { console.log(`${chalk.red("ERR:")} ${e}`); } };