Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
// Modules
const _ = require('lodash');
const chalk = require('yargonaut').chalk();
const os = require('os');
// Art data
const art = {
error: [
chalk.red('Lando has crashed!!!'),
'',
'Would you like to report it, and subsequent errors, to Lando?',
'',
'This data is only used by the Lando team to ensure the application runs as well as it can.',
chalk.green('For more details check out https://docs.lando.dev/privacy/'),
],
init: [
chalk.green('NOW WE\'RE COOKING WITH FIRE!!!'),
'Your app has been initialized!',
'',
'use strict';
// Modules
const _ = require('lodash');
const chalk = require('yargonaut').chalk();
const fs = require('fs-extra');
const path = require('path');
const url = require('url');
/*
* Checks if there is already an app with the same name in an app _registry
* object
*/
exports.appNameExists = (apps, app) => _.some(apps, a => a.name === app.name);
/*
* Validates compose files returns legit ones
*/
exports.validateFiles = (files, root) => {
// Handle args
if (typeof files === 'string') {
* // Get the lodash module
* var _ = lando.node._;
*/
exports._ = require('lodash');
/**
* Get chalk
*
* @since 3.0.0
* @alias 'lando.node.chalk'
* @example
*
* // Get the chalk module
* var chalk = lando.node.chalk;
*/
exports.chalk = require('yargonaut').chalk();
/**
* Get fs-extra
*
* @since 3.0.0
* @alias 'lando.node.fs'
* @example
*
* // Get the fs-extra module
* var fs = lando.node.fs;
*/
exports.fs = require('fs-extra');
/**
* Get object-hash
*
const _ = require('lodash');
const chalk = require('yargonaut').chalk();
const OldTable = require('cli-table');
module.exports = class Table extends OldTable {
constructor(opts = {}) {
const tableDefaults = {
chars: {
'top': '',
'top-mid': '',
'top-left': '',
'top-right': '',
'bottom': '',
'bottom-mid': '',
'bottom-left': '',
'bottom-right': '',
'left': '',
'left-mid': '',