Skip to content

Commit 17a0eda

Browse files
committed
feat: add number support
number types were not previously supported.
1 parent c162cc8 commit 17a0eda

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

internal/service/resource_definition.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ func addSchemaFlags(c *cobra.Command, schema openapi.Schema, args map[string]int
182182
var value int
183183
args[name] = &value
184184
c.Flags().IntVar(&value, name, 0, fmt.Sprintf("The %v of the resource", name))
185+
case "number":
186+
var value float64
187+
args[name] = &value
188+
c.Flags().Float64Var(&value, name, 0, fmt.Sprintf("The %v of the resource", name))
185189
case "boolean":
186190
var value bool
187191
args[name] = &value

0 commit comments

Comments
 (0)