Skip to content

Commit

Permalink
feat: add number support
Browse files Browse the repository at this point in the history
number types were not previously supported.
  • Loading branch information
toumorokoshi committed Nov 2, 2024
1 parent c162cc8 commit 17a0eda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/resource_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ func addSchemaFlags(c *cobra.Command, schema openapi.Schema, args map[string]int
var value int
args[name] = &value
c.Flags().IntVar(&value, name, 0, fmt.Sprintf("The %v of the resource", name))
case "number":
var value float64
args[name] = &value
c.Flags().Float64Var(&value, name, 0, fmt.Sprintf("The %v of the resource", name))
case "boolean":
var value bool
args[name] = &value
Expand Down

0 comments on commit 17a0eda

Please sign in to comment.