revert stack changes
This commit is contained in:
parent
844e8f0c1e
commit
96af4684db
|
@ -26,7 +26,6 @@ import (
|
||||||
"github.com/pulumi/pulumi/pkg/v3/backend/display"
|
"github.com/pulumi/pulumi/pkg/v3/backend/display"
|
||||||
"github.com/pulumi/pulumi/pkg/v3/backend/httpstate"
|
"github.com/pulumi/pulumi/pkg/v3/backend/httpstate"
|
||||||
"github.com/pulumi/pulumi/pkg/v3/resource/deploy"
|
"github.com/pulumi/pulumi/pkg/v3/resource/deploy"
|
||||||
"github.com/pulumi/pulumi/pkg/v3/util"
|
|
||||||
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
|
"github.com/pulumi/pulumi/sdk/v3/go/common/resource"
|
||||||
"github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil"
|
"github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil"
|
||||||
)
|
)
|
||||||
|
@ -235,25 +234,25 @@ type treeNode struct {
|
||||||
func renderNode(node *treeNode, padding, branch string, showURNs, showIDs bool, rows *[]cmdutil.TableRow) {
|
func renderNode(node *treeNode, padding, branch string, showURNs, showIDs bool, rows *[]cmdutil.TableRow) {
|
||||||
padBranch := ""
|
padBranch := ""
|
||||||
switch branch {
|
switch branch {
|
||||||
case util.TBranchString:
|
case "├─ ":
|
||||||
padBranch = util.TPaddingString
|
padBranch = "│ "
|
||||||
case util.LBranchString:
|
case "└─ ":
|
||||||
padBranch = util.LPaddingString
|
padBranch = " "
|
||||||
}
|
}
|
||||||
childPadding := padding + padBranch
|
childPadding := padding + padBranch
|
||||||
|
|
||||||
infoBranch := util.LPaddingString
|
infoBranch := " "
|
||||||
if len(node.children) > 0 {
|
if len(node.children) > 0 {
|
||||||
infoBranch = util.TPaddingString
|
infoBranch = "│ "
|
||||||
}
|
}
|
||||||
infoPadding := childPadding + infoBranch
|
infoPadding := childPadding + infoBranch
|
||||||
|
|
||||||
*rows = append(*rows, renderResourceRow(node.res, padding+branch, infoPadding, showURNs, showIDs))
|
*rows = append(*rows, renderResourceRow(node.res, padding+branch, infoPadding, showURNs, showIDs))
|
||||||
|
|
||||||
for i, child := range node.children {
|
for i, child := range node.children {
|
||||||
childBranch := util.TBranchString
|
childBranch := "├─ "
|
||||||
if i == len(node.children)-1 {
|
if i == len(node.children)-1 {
|
||||||
childBranch = util.LBranchString
|
childBranch = "└─ "
|
||||||
}
|
}
|
||||||
renderNode(child, childPadding, childBranch, showURNs, showIDs, rows)
|
renderNode(child, childPadding, childBranch, showURNs, showIDs, rows)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
package util
|
|
||||||
|
|
||||||
const TBranchString = "├─ "
|
|
||||||
const LBranchString = "└─ "
|
|
||||||
const TPaddingString = "│ "
|
|
||||||
const LPaddingString = " "
|
|
Loading…
Reference in a new issue