From 53b9bac4e47e5abebb344342a42b27f8015936b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Jutteau?= Date: Mon, 20 Jun 2022 15:43:37 +0200 Subject: [PATCH] cli: fix provider sub-command printing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Jutteau --- cmd/frieza/cli_provider.go | 6 +++--- docs/providers.md | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/frieza/cli_provider.go b/cmd/frieza/cli_provider.go index a07e43b..ef18d33 100644 --- a/cmd/frieza/cli_provider.go +++ b/cmd/frieza/cli_provider.go @@ -1,7 +1,7 @@ package main import ( - "log" + "fmt" "github.com/teris-io/cli" ) @@ -17,7 +17,7 @@ func cliProviderLs() cli.Command { WithShortcut("ls"). WithAction(func(args []string, options map[string]string) int { for providerName := range providersTypes { - log.Printf("%s\n", providerName) + fmt.Println(providerName) } return 0 }) @@ -30,7 +30,7 @@ func cliProviderDescribe() cli.Command { WithAction(func(args []string, options map[string]string) int { providerName := args[0] for _, providerType := range providersTypes[providerName] { - log.Printf("%s\n", providerType) + fmt.Println(providerType) } return 0 }) diff --git a/docs/providers.md b/docs/providers.md index caf857c..64f4984 100644 --- a/docs/providers.md +++ b/docs/providers.md @@ -1,9 +1,5 @@ # Providers and supported objects -## s3 -- object -- bucket - ## outscale_oapi - vm - load_balancer @@ -21,3 +17,8 @@ - vpn_connection - virtual_gateway - nic +- access_key + +## s3 +- object +- bucket