Skip to content

Commit c6c264a

Browse files
update argo agent (#553)
1 parent 5a53839 commit c6c264a

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const Command = require('../../Command');
2+
3+
const applyRoot = require('../root/apply.cmd');
4+
const { downloadArgo } = require('../hybrid/helper');
5+
const { Runner, components } = require('../../../../binary');
6+
7+
const command = new Command({
8+
root: false,
9+
parent: applyRoot,
10+
command: 'argocd-agent',
11+
description: 'Patch argo agent',
12+
webDocs: {
13+
category: 'Argo',
14+
title: 'Patch',
15+
weight: 100,
16+
},
17+
builder: (yargs) => {
18+
yargs
19+
.example(
20+
'codefresh patch argocd-agent',
21+
'Update argocd-agent',
22+
);
23+
},
24+
handler: async () => {
25+
const binLocation = await downloadArgo();
26+
const componentRunner = new Runner(binLocation);
27+
28+
const commands = [
29+
'update',
30+
];
31+
32+
await componentRunner.run(components.argo, commands);
33+
},
34+
});
35+
36+
module.exports = command;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.72.1",
3+
"version": "0.72.2",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)