Skip to content

Commit

Permalink
chore; fix linting errors #374
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jan 9, 2024
1 parent 2d583b6 commit 3040111
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions cmd/registry/apis/versions/specs/crtspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,23 @@ var CreateSpecCmd = &cobra.Command{
if err != nil {
return err
}
_, err = versions.CreateSpec(apiName, apiVersion, apiSpecId,
_, err = versions.CreateSpec(apiName, apiVersion, apiSpecID,
name, fileName, description, sourceURI, string(fileContents), labels, annotations)
return
},
}

var labels, annotations map[string]string
var apiSpecId, fileName, description, sourceURI, filePath string
var (
labels, annotations map[string]string
apiSpecID, fileName, description, sourceURI, filePath string
)

func init() {
CreateSpecCmd.Flags().StringVarP(&apiName, "api-name", "",
"", "API Name")
CreateSpecCmd.Flags().StringVarP(&apiVersion, "api-version", "",
"", "API Version")
CreateSpecCmd.Flags().StringVarP(&apiVersion, "api-specid", "",
CreateSpecCmd.Flags().StringVarP(&apiSpecID, "api-specid", "",
"", "API Spec Id")
CreateSpecCmd.Flags().StringVarP(&name, "name", "n",
"", "API Version Spec name")
Expand Down

0 comments on commit 3040111

Please sign in to comment.