File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
internal/cmd/auth/get-access-token Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 4
4
"encoding/json"
5
5
"fmt"
6
6
7
- "github.com/goccy/go-yaml"
8
7
"github.com/spf13/cobra"
9
8
"github.com/stackitcloud/stackit-cli/internal/cmd/params"
10
9
"github.com/stackitcloud/stackit-cli/internal/pkg/args"
@@ -59,16 +58,6 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
59
58
}
60
59
params .Printer .Outputln (string (details ))
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 ))
71
-
72
61
return nil
73
62
default :
74
63
params .Printer .Outputln (accessToken )
You can’t perform that action at this time.
0 commit comments