Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions lib/interface/cli/commands/argocd/patch.cmd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const Command = require('../../Command');

const applyRoot = require('../root/apply.cmd');
const { downloadArgo } = require('../hybrid/helper');
const { Runner, components } = require('../../../../binary');

const command = new Command({
root: false,
parent: applyRoot,
command: 'argocd-agent',
description: 'Patch argo agent',
webDocs: {
category: 'Argo',
title: 'Patch',
weight: 100,
},
builder: (yargs) => {
yargs
.example(
'codefresh patch argocd-agent',
'Update argocd-agent',
);
},
handler: async () => {
const binLocation = await downloadArgo();
const componentRunner = new Runner(binLocation);

const commands = [
'update',
];

await componentRunner.run(components.argo, commands);
},
});

module.exports = command;
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.72.1",
"version": "0.72.2",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down