@@ -18,7 +18,10 @@ export default class Update extends SfdxCommand {
1818 public static description = messages . getMessage ( 'updateCommandDescription' ) ;
1919 public static longDescription = messages . getMessage ( 'updateCommandLongDescription' ) ;
2020
21- public static examples = [ '$ sfdx analytics:template:update -t templateid -f folderid' ] ;
21+ public static examples = [
22+ '$ sfdx analytics:template:update -t templateid -f folderid' ,
23+ '$ sfdx analytics:template:update -t templateid -f folderid -r "recipeid1, recipeid2"'
24+ ] ;
2225
2326 protected static flagsConfig = {
2427 templateid : flags . id ( {
@@ -38,6 +41,13 @@ export default class Update extends SfdxCommand {
3841 description : messages . getMessage ( 'folderidFlagDescription' ) ,
3942 longDescription : messages . getMessage ( 'folderidFlagLongDescription' )
4043 } ) ,
44+ // recipeids only work in 238+, they are silently ignored on the server in 236-
45+ recipeids : flags . array ( {
46+ char : 'r' ,
47+ required : false ,
48+ description : messages . getMessage ( 'recipeidsFlagDescription' ) ,
49+ longDescription : messages . getMessage ( 'recipeidsFlagLongDescription' )
50+ } ) ,
4151 assetversion : flags . integer ( {
4252 char : 'v' ,
4353 description : messages . getMessage ( 'assetVersionFlagDescription' ) ,
@@ -66,6 +76,7 @@ export default class Update extends SfdxCommand {
6676 }
6777 let folderid = this . flags . folderid as string | undefined ;
6878 const assetversion = this . flags . assetversion as number | undefined ;
79+ const recipeIds = this . flags . recipeids as string [ ] | undefined ;
6980
7081 const template = new WaveTemplate ( this . org as Org ) ;
7182
@@ -102,7 +113,7 @@ export default class Update extends SfdxCommand {
102113 return ;
103114 }
104115 }
105- const result = await template . update ( folderid , templateInput , assetversion ) ;
116+ const result = await template . update ( folderid , templateInput , assetversion , recipeIds ) ;
106117 this . ux . log ( messages . getMessage ( 'updateSuccess' , [ result ?. name , result ?. id , folderid ] ) ) ;
107118 return templateInput ;
108119 }
0 commit comments