Skip to content

Commit

Permalink
cli: fix provider sub-command printing
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Jun 20, 2022
1 parent 70fee90 commit 53b9bac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/frieza/cli_provider.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"log"
"fmt"

"github.com/teris-io/cli"
)
Expand All @@ -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
})
Expand All @@ -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
})
Expand Down
9 changes: 5 additions & 4 deletions docs/providers.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Providers and supported objects

## s3
- object
- bucket

## outscale_oapi
- vm
- load_balancer
Expand All @@ -21,3 +17,8 @@
- vpn_connection
- virtual_gateway
- nic
- access_key

## s3
- object
- bucket

0 comments on commit 53b9bac

Please sign in to comment.