You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Upgrade a resource by filename or stdin',
11
+
usage: 'Upgrade operation will apply only passed changes to an existing resource and will throw an error if the resource does not exist.\n\n Supported resources: \n\t\'Context\'',
12
+
webDocs: {
13
+
description: 'Upgrade a resource from a file, directory or url',
14
+
category: 'Operate On Resources',
15
+
title: 'Upgrade',
16
+
weight: 40,
17
+
},
18
+
builder: (yargs)=>{
19
+
crudFilenameOption(yargs);
20
+
returnyargs;
21
+
},
22
+
handler: async(argv)=>{
23
+
if(!argv.filename){
24
+
yargs.showHelp();
25
+
}
26
+
27
+
constdata=argv.filename;
28
+
constentity=data.kind;
29
+
30
+
switch(entity){
31
+
default:
32
+
thrownewCFError(`Entity: ${entity} not supported`);
0 commit comments