MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / newOrganizationDescribeCmd

Function newOrganizationDescribeCmd

app/cli/cmd/organization_describe.go:28–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func 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
46func contextTableOutput(config *action.ConfigContextItem) error {
47 gt := output.NewTableWriter()

Callers 1

newOrganizationCmdFunction · 0.85

Calls 3

NewConfigCurrentContextFunction · 0.92
EncodeOutputFunction · 0.92
RunMethod · 0.45

Tested by

no test coverage detected