Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
7c6153f4
Commit
7c6153f4
authored
8 years ago
by
Matt Butcher
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1788 from nebril/helm-status-align
Align output of helm status resources output
parents
35604f23
075a9d8e
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/helm/status.go
+7
-1
cmd/helm/status.go
with
7 additions
and
1 deletion
+7
-1
cmd/helm/status.go
+
7
−
1
View file @
7c6153f4
...
@@ -19,6 +19,8 @@ package main
...
@@ -19,6 +19,8 @@ package main
import
(
import
(
"fmt"
"fmt"
"io"
"io"
"regexp"
"text/tabwriter"
"github.com/spf13/cobra"
"github.com/spf13/cobra"
...
@@ -95,7 +97,11 @@ func PrintStatus(out io.Writer, res *services.GetReleaseStatusResponse) {
...
@@ -95,7 +97,11 @@ func PrintStatus(out io.Writer, res *services.GetReleaseStatusResponse) {
}
}
fmt
.
Fprintf
(
out
,
"
\n
"
)
fmt
.
Fprintf
(
out
,
"
\n
"
)
if
len
(
res
.
Info
.
Status
.
Resources
)
>
0
{
if
len
(
res
.
Info
.
Status
.
Resources
)
>
0
{
fmt
.
Fprintf
(
out
,
"RESOURCES:
\n
%s
\n
"
,
res
.
Info
.
Status
.
Resources
)
re
:=
regexp
.
MustCompile
(
" +"
)
w
:=
tabwriter
.
NewWriter
(
out
,
0
,
0
,
2
,
' '
,
tabwriter
.
TabIndent
)
fmt
.
Fprintf
(
w
,
"RESOURCES:
\n
%s
\n
"
,
re
.
ReplaceAllString
(
res
.
Info
.
Status
.
Resources
,
"
\t
"
))
w
.
Flush
()
}
}
if
len
(
res
.
Info
.
Status
.
Notes
)
>
0
{
if
len
(
res
.
Info
.
Status
.
Notes
)
>
0
{
fmt
.
Fprintf
(
out
,
"NOTES:
\n
%s
\n
"
,
res
.
Info
.
Status
.
Notes
)
fmt
.
Fprintf
(
out
,
"NOTES:
\n
%s
\n
"
,
res
.
Info
.
Status
.
Notes
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets