We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7c321 commit 32bc479Copy full SHA for 32bc479
internal/cmd/auth/get-access-token/get_access_token.go
@@ -4,7 +4,6 @@ import (
4
"encoding/json"
5
"fmt"
6
7
- "github.com/goccy/go-yaml"
8
"github.com/spf13/cobra"
9
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
10
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
@@ -61,13 +60,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
61
60
62
return nil
63
case print.YAMLOutputFormat:
64
- details, err := yaml.MarshalWithOptions(map[string]string{
65
- "access_token": accessToken,
66
- }, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
67
- if err != nil {
68
- return fmt.Errorf("marshal image list: %w", err)
69
- }
70
- params.Printer.Outputln(string(details))
+ params.Printer.Outputln(accessToken)
71
72
73
default:
0 commit comments