You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/describe_component.go
+50-3Lines changed: 50 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
package cmd
2
2
3
3
import (
4
+
"errors"
5
+
4
6
"github.com/spf13/cobra"
5
7
6
8
e "github.com/cloudposse/atmos/internal/exec"
@@ -13,22 +15,59 @@ var describeComponentCmd = &cobra.Command{
13
15
Short: "Show configuration details for an Atmos component in a stack",
14
16
Long: `Display the configuration details for a specific Atmos component within a designated Atmos stack, including its dependencies, settings, and overrides.`,
describeComponentCmd.PersistentFlags().StringP("format", "f", "yaml", "The output format (`yaml` is default)")
70
+
describeComponentCmd.PersistentFlags().StringP("format", "f", "yaml", "The output format")
32
71
describeComponentCmd.PersistentFlags().String("file", "", "Write the result to the file")
33
72
describeComponentCmd.PersistentFlags().Bool("process-templates", true, "Enable/disable Go template processing in Atmos stack manifests when executing the command")
34
73
describeComponentCmd.PersistentFlags().Bool("process-functions", true, "Enable/disable YAML functions processing in Atmos stack manifests when executing the command")
@@ -41,3 +80,11 @@ func init() {
41
80
42
81
describeCmd.AddCommand(describeComponentCmd)
43
82
}
83
+
84
+
// checkFlagNotPresentError checks if the error is nil.
85
+
// we prefer to panic because this is a developer error.
0 commit comments