@@ -129,7 +129,7 @@ rhoas service-registry artifact create --type=JSON my-artifact.json
129129 cmd .Flags ().StringVarP (& opts .file , "file" , "f" , "" , "File location of the artifact" )
130130
131131 cmd .Flags ().StringVarP (& opts .artifact , "artifact-id" , "a" , "" , "Id of the artifact" )
132- cmd .Flags ().StringVarP (& opts .group , "group" , "g" , "" , "Group of the artifact" )
132+ cmd .Flags ().StringVarP (& opts .group , "group" , "g" , util . DefaultArtifactGroup , "Group of the artifact" )
133133 cmd .Flags ().StringVarP (& opts .artifactType , "type" , "t" , "" , "Type of artifact. Choose from: " + util .GetAllowedArtifactTypeEnumValuesAsString ())
134134 cmd .Flags ().StringVarP (& opts .registryID , "instance-id" , "" , "" , "Id of the registry to be used. By default uses currently selected registry" )
135135
@@ -158,8 +158,8 @@ func runCreate(opts *Options) error {
158158 return err
159159 }
160160
161- if opts .group == "" {
162- logger .Info ("Group was not specified. Using " + util .DefaultArtifactGroup + " artifacts group." )
161+ if opts .group == util . DefaultArtifactGroup {
162+ logger .Info ("Group was not specified. Using " , util .DefaultArtifactGroup , " artifacts group." )
163163 opts .group = util .DefaultArtifactGroup
164164 }
165165
@@ -171,7 +171,7 @@ func runCreate(opts *Options) error {
171171 return err
172172 }
173173 } else {
174- logger .Info ("Reading file content from stdin " )
174+ logger .Info ("Reading file content from standard input " )
175175 specifiedFile , err = util .CreateFileFromStdin ()
176176 if err != nil {
177177 return err
0 commit comments