Skip to content

Commit

Permalink
Cr 6059 fix array (#762)
Browse files Browse the repository at this point in the history
* fix array, require order

* bump version
  • Loading branch information
andrii-codefresh authored Nov 16, 2022
1 parent 4e9b9a2 commit 470eb1c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions lib/interface/cli/commands/hybrid/helper.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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':
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.80.3",
"version": "0.80.4",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 470eb1c

Please sign in to comment.