UNPKG

@techdocs/cli

Version:

Utility CLI for managing TechDocs sites in Backstage.

22 lines (18 loc) 626 B
'use strict'; var cliCommon = require('@backstage/cli-common'); async function checkIfDockerIsOperational(logger) { logger.info("Checking Docker status..."); const isOperational = await cliCommon.runCheck(["docker", "info"]); if (isOperational) { logger.info( "Docker is up and running. Proceed to starting up mkdocs server" ); return true; } logger.error( "Docker is not running. Exiting. Please check status of Docker daemon with `docker info` before re-running" ); return false; } exports.checkIfDockerIsOperational = checkIfDockerIsOperational; //# sourceMappingURL=utils.cjs.js.map