From 3bda357aa021402dfefb11d2404250ade7c25a4f Mon Sep 17 00:00:00 2001 From: schakrad <58915923+schakrad@users.noreply.github.com> Date: Wed, 6 Sep 2023 16:38:16 -0700 Subject: [PATCH] including application details Signed-off-by: schakrad <58915923+schakrad@users.noreply.github.com> --- cmd/argocd/commands/app.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cmd/argocd/commands/app.go b/cmd/argocd/commands/app.go index 6720f563b011f..f6fc695f6220f 100644 --- a/cmd/argocd/commands/app.go +++ b/cmd/argocd/commands/app.go @@ -361,6 +361,23 @@ func NewApplicationGetCommand(clientOpts *argocdclient.ClientOptions) *cobra.Com _ = w.Flush() } case "tree": + aURL := appURL(ctx, acdClient, app.Name) + printAppSummaryTable(app, aURL, windows) + + if len(app.Status.Conditions) > 0 { + fmt.Println() + w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0) + printAppConditions(w, app) + _ = w.Flush() + fmt.Println() + } + if showOperation && app.Status.OperationState != nil { + fmt.Println() + printOperationResult(app.Status.OperationState) + } + if showParams { + printParams(app) + } mapUidToNode, mapParentToChild, parentNode := parentChildDetails(appIf, ctx, appName, appNs) mapNodeNameToResourceState := make(map[string]*resourceState) for _, res := range getResourceStates(app, nil) {