diff --git a/lib/interface/cli/commands/hybrid/helper.js b/lib/interface/cli/commands/hybrid/helper.js index 9771dde2c..d6ad5cf61 100644 --- a/lib/interface/cli/commands/hybrid/helper.js +++ b/lib/interface/cli/commands/hybrid/helper.js @@ -1,25 +1,26 @@ -const { prettyError } = require('../../../../logic/cli-config/errors/helpers'); +const _ = require('lodash'); const colors = require('colors'); -const { to } = require('./../../../../logic/cli-config/errors/awaitTo'); +const cliProgress = require('cli-progress'); +const figlet = require('figlet'); +const path = require('path'); +const { homedir } = require('os'); +const Promise = require('bluebird'); +const YAML = require('yaml'); +const fs = require('fs'); + +const { prettyError } = require('../../../../logic/cli-config/errors/helpers'); +const { to } = require('../../../../logic/cli-config/errors/awaitTo'); const sdk = require('../../../../logic/sdk'); -const _ = require('lodash'); const { status: STATUSES } = require('./installation-process'); const pipelinesRunCmd = require('../pipeline/run.cmd'); const { getAllNamespaces } = require('../../helpers/kubernetes'); const { followLogs } = require('../../helpers/logs'); const ProgressEvents = require('../../helpers/progressEvents'); -const cliProgress = require('cli-progress'); -const figlet = require('figlet'); -const path = require('path'); -const { homedir } = require('os'); const { components, Runner, Downloader, CommonProgressFormat, CODEFRESH_PATH, -} = require('./../../../../binary'); +} = require('../../../../binary'); const { pathExists } = require('../../helpers/general'); -const Promise = require('bluebird'); -const YAML = require('yaml'); -const fs = require('fs'); const INSTALLATION_DEFAULTS = { NAMESPACE: 'codefresh', @@ -421,7 +422,8 @@ async function downloadHybridComponents(location, bypassDownload = false) { } /* eslint-disable no-restricted-syntax, no-await-in-loop */ -async function downloadComponents(location = CODEFRESH_PATH, componentsArray = []) { +async function downloadComponents(location = CODEFRESH_PATH, componentsArg = []) { + const componentsArray = _.isArray(componentsArg) ? componentsArg : [componentsArg]; for (const component of componentsArray) { switch (component) { case 'stevedore': diff --git a/package.json b/package.json index 59a650c5f..3a6d8291a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.80.3", + "version": "0.80.4", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,