Skip to content

Commit c1651df

Browse files
committed
Added a warning message when running 'scw _billing'
1 parent 45b7b99 commit c1651df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cli/x_billing.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/scaleway/scaleway-cli/pkg/commands"
1414
"github.com/scaleway/scaleway-cli/pkg/pricing"
1515
"github.com/scaleway/scaleway-cli/pkg/utils"
16+
"github.com/scaleway/scaleway-cli/vendor/github.com/Sirupsen/logrus"
1617
"github.com/scaleway/scaleway-cli/vendor/github.com/docker/docker/pkg/units"
1718
)
1819

@@ -52,6 +53,11 @@ func runBilling(cmd *Command, rawArgs []string) error {
5253
}
5354
ctx := cmd.GetContext(rawArgs)
5455

56+
logrus.Warn("")
57+
logrus.Warn("Warning: 'scw _billing' is a work-in-progress price estimation tool")
58+
logrus.Warn("For real usage, visit https://cloud.scaleway.com/#/billing")
59+
logrus.Warn("")
60+
5561
// table
5662
w := tabwriter.NewWriter(ctx.Stdout, 20, 1, 3, ' ', 0)
5763
defer w.Flush()

0 commit comments

Comments
 (0)