Skip to content

Commit 60d95b9

Browse files
feat: regenerate CLI from OpenAPI spec
1 parent 473e945 commit 60d95b9

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎client/client.gen.go‎

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎cmd/billing/catalog/list.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var ListCmd = &cobra.Command{
1616
Short: "Get catalog item list",
1717
Long: "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point),\ne.g: float `17.99` is displayed as integer `1799`.\n\nUse this endpoint to view available services and pricing before placing orders.",
1818
Run: func(cmd *cobra.Command, args []string) {
19-
utils.EnumCheck(cmd, "category", []string{"DOMAIN", "VPS", "EMAIL"})
19+
utils.EnumCheck(cmd, "category", []string{"DOMAIN", "VPS", "EMAIL", "HOSTING"})
2020
r, err := api.Request().BillingGetCatalogItemListV1WithResponse(context.TODO(), listParams(cmd))
2121
if err != nil {
2222
log.Fatal(err)
@@ -27,7 +27,7 @@ var ListCmd = &cobra.Command{
2727
}
2828

2929
func init() {
30-
ListCmd.Flags().StringP("category", "", "", "Filter catalog items by category (one of: DOMAIN, VPS, EMAIL)")
30+
ListCmd.Flags().StringP("category", "", "", "Filter catalog items by category (one of: DOMAIN, VPS, EMAIL, HOSTING)")
3131
ListCmd.Flags().StringP("name", "", "", "Filter catalog items by name. Use `*` for wildcard search, e.g. `.COM*` to find .com domain")
3232
}
3333

‎docs/hostinger_billing_catalog_list.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ hostinger billing catalog list [flags]
1818
### Options
1919

2020
```
21-
--category string Filter catalog items by category (one of: DOMAIN, VPS, EMAIL)
21+
--category string Filter catalog items by category (one of: DOMAIN, VPS, EMAIL, HOSTING)
2222
-h, --help help for list
2323
--name * Filter catalog items by name. Use * for wildcard search, e.g. `.COM*` to find .com domain
2424
```

0 commit comments

Comments
 (0)