()
| 26 | ) |
| 27 | |
| 28 | func newOrganizationDescribeCmd() *cobra.Command { |
| 29 | cmd := &cobra.Command{ |
| 30 | Use: "describe", |
| 31 | Aliases: []string{"current-context"}, |
| 32 | Short: "Describe the current organization", |
| 33 | RunE: func(cmd *cobra.Command, args []string) error { |
| 34 | res, err := action.NewConfigCurrentContext(ActionOpts).Run() |
| 35 | if err != nil { |
| 36 | return err |
| 37 | } |
| 38 | |
| 39 | return output.EncodeOutput(flagOutputFormat, res, contextTableOutput) |
| 40 | }, |
| 41 | } |
| 42 | |
| 43 | return cmd |
| 44 | } |
| 45 | |
| 46 | func contextTableOutput(config *action.ConfigContextItem) error { |
| 47 | gt := output.NewTableWriter() |
no test coverage detected