Skip to content

Commit 9a1b403

Browse files
authored
docs(billing): specify for all tools (#3389)
1 parent 89f428a commit 9a1b403

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

cmd/scw/testdata/test-all-usage-billing-invoice-download-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Download billing resources.
3+
Download a specific invoice, specified by its ID.
44

55
USAGE:
66
scw billing invoice download [arg=value ...]

cmd/scw/testdata/test-all-usage-billing-invoice-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List billing resources.
3+
List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
44

55
USAGE:
66
scw billing invoice list [arg=value ...]

cmd/scw/testdata/test-all-usage-billing-invoice-usage.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ USAGE:
66
scw billing invoice <command>
77

88
AVAILABLE COMMANDS:
9-
download Download billing resources
10-
list List billing resources
9+
download Download an invoice
10+
list List invoices
1111

1212
FLAGS:
1313
-h, --help help for invoice

docs/commands/billing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
Billing API.
44

55
- [Invoices management commands](#invoices-management-commands)
6-
- [Download billing resources](#download-billing-resources)
7-
- [List billing resources](#list-billing-resources)
6+
- [Download an invoice](#download-an-invoice)
7+
- [List invoices](#list-invoices)
88

99

1010
## Invoices management commands
1111

1212
Invoices management commands.
1313

1414

15-
### Download billing resources
15+
### Download an invoice
1616

17-
Download billing resources.
17+
Download a specific invoice, specified by its ID.
1818

1919
**Usage:**
2020

@@ -34,9 +34,9 @@ scw billing invoice download [arg=value ...]
3434

3535

3636

37-
### List billing resources
37+
### List invoices
3838

39-
List billing resources.
39+
List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
4040

4141
**Usage:**
4242

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230927151821-5e183988cfb6
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230928151303-2c2ba9cd7dfd
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDN
487487
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
488488
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
489489
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
490-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230927151821-5e183988cfb6 h1:pDDuzt8ag2fUPEDEM1+BUrM/SemvjvmfOHQ1ptfa0EU=
491-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230927151821-5e183988cfb6/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
490+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230928151303-2c2ba9cd7dfd h1:2gTqwKzQa5ZY3oRyFr2dZKZ2fcDbG7vL5CqrPlzAYtI=
491+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230928151303-2c2ba9cd7dfd/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
492492
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
493493
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
494494
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/billing/v2alpha1/billing_cli.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ func billingInvoice() *core.Command {
4444

4545
func billingInvoiceList() *core.Command {
4646
return &core.Command{
47-
Short: `List billing resources`,
48-
Long: `List billing resources.`,
47+
Short: `List invoices`,
48+
Long: `List all your invoices, filtering by ` + "`" + `start_date` + "`" + ` and ` + "`" + `invoice_type` + "`" + `. Each invoice has its own ID.`,
4949
Namespace: "billing",
5050
Resource: "invoice",
5151
Verb: "list",
@@ -108,8 +108,8 @@ func billingInvoiceList() *core.Command {
108108

109109
func billingInvoiceDownload() *core.Command {
110110
return &core.Command{
111-
Short: `Download billing resources`,
112-
Long: `Download billing resources.`,
111+
Short: `Download an invoice`,
112+
Long: `Download a specific invoice, specified by its ID.`,
113113
Namespace: "billing",
114114
Resource: "invoice",
115115
Verb: "download",

0 commit comments

Comments
 (0)