Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
7c6153f4
Commit
7c6153f4
authored
Jan 05, 2017
by
Matt Butcher
Committed by
GitHub
Jan 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1788 from nebril/helm-status-align
Align output of helm status resources output
parents
35604f23
075a9d8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
status.go
cmd/helm/status.go
+7
-1
No files found.
cmd/helm/status.go
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment