@boltic/cli
Version:
A powerful CLI tool for managing Boltic Workflow integrations - create, sync, test, and publish integrations with ease
21 lines (16 loc) • 389 B
JavaScript
import chalk from "chalk";
let isVerbose = false;
export const setVerboseMode = (verbose) => {
isVerbose = verbose;
};
export const getVerboseMode = () => {
return isVerbose;
};
export const logApi = (method, url, status) => {
if (!isVerbose) return;
console.log(
chalk(
`https fetch ${chalk.cyan(method.toUpperCase())} ${chalk.green(status)} ${chalk.yellow(url)}`
)
);
};