@@ -49,7 +49,7 @@ func newRegisteredIntegrationAddCmd() *cobra.Command {
4949 }
5050
5151 // Parse and validate options
52- opts , err := parseAndValidateOpts (options , item .Registration )
52+ opts , err := ParseAndValidateOpts (options , item .Registration )
5353 if err != nil {
5454 // Show schema table if validation fails
5555 if err := RenderSchemaTable ("Available options" , item .Registration .Properties ); err != nil {
@@ -79,9 +79,9 @@ func newRegisteredIntegrationAddCmd() *cobra.Command {
7979 return cmd
8080}
8181
82- func parseAndValidateOpts (opts []string , schema * action.JSONSchema ) (map [string ]any , error ) {
82+ func ParseAndValidateOpts (opts []string , schema * action.JSONSchema ) (map [string ]any , error ) {
8383 // Parse
84- res , err := parseKeyValOpts (opts , schema .Properties )
84+ res , err := ParseKeyValOpts (opts , schema .Properties )
8585 if err != nil {
8686 return nil , fmt .Errorf ("failed to parse options: %w" , err )
8787 }
@@ -101,10 +101,10 @@ func parseAndValidateOpts(opts []string, schema *action.JSONSchema) (map[string]
101101 return res , nil
102102}
103103
104- // parseKeyValOpts performs two steps
104+ // ParseKeyValOpts performs two steps
105105// 1 - Split the options into key/value pairs
106106// 2 - Cast the values to the expected type defined in the schema
107- func parseKeyValOpts (opts []string , propertiesMap sdk.SchemaPropertiesMap ) (map [string ]any , error ) {
107+ func ParseKeyValOpts (opts []string , propertiesMap sdk.SchemaPropertiesMap ) (map [string ]any , error ) {
108108 // 1 - Split the options into key/value pairs
109109 var options = make (map [string ]any )
110110 for _ , opt := range opts {
0 commit comments