Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions internal/cmd/auth/get-access-token/get_access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"

"github.com/goccy/go-yaml"
"github.com/spf13/cobra"
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
Expand Down Expand Up @@ -61,13 +60,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {

return nil
case print.YAMLOutputFormat:
details, err := yaml.MarshalWithOptions(map[string]string{
"access_token": accessToken,
}, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
if err != nil {
return fmt.Errorf("marshal image list: %w", err)
}
params.Printer.Outputln(string(details))
params.Printer.Outputln(accessToken)
Comment thread
Benjosh95 marked this conversation as resolved.
Outdated

return nil
default:
Expand Down
Loading