File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
lib/interface/cli/commands/argocd Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments