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
86647034
Commit
86647034
authored
May 10, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #671 from technosophos/fix/install-verbose
fix(helm): make install ouput similar to others
parents
361fd36f
e24be19e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
install.go
cmd/helm/install.go
+7
-8
No files found.
cmd/helm/install.go
View file @
86647034
...
@@ -31,8 +31,6 @@ var (
...
@@ -31,8 +31,6 @@ var (
installArg
string
installArg
string
// tillerHost overrides TILLER_HOST envVar
// tillerHost overrides TILLER_HOST envVar
tillerHost
string
tillerHost
string
// verbose enables verbose output
verbose
bool
// installDryRun performs a dry-run install
// installDryRun performs a dry-run install
installDryRun
bool
installDryRun
bool
)
)
...
@@ -64,11 +62,13 @@ func printRelease(rel *release.Release) {
...
@@ -64,11 +62,13 @@ func printRelease(rel *release.Release) {
if
rel
==
nil
{
if
rel
==
nil
{
return
return
}
}
fmt
.
Printf
(
"release.name: %s
\n
"
,
rel
.
Name
)
if
flagVerbose
{
if
verbose
{
fmt
.
Printf
(
"NAME: %s
\n
"
,
rel
.
Name
)
fmt
.
Printf
(
"release.info: %s %s
\n
"
,
timeconv
.
Format
(
rel
.
Info
.
LastDeployed
,
time
.
ANSIC
),
rel
.
Info
.
Status
)
fmt
.
Printf
(
"INFO: %s %s
\n
"
,
timeconv
.
Format
(
rel
.
Info
.
LastDeployed
,
time
.
ANSIC
),
rel
.
Info
.
Status
)
fmt
.
Printf
(
"release.chart: %s %s
\n
"
,
rel
.
Chart
.
Metadata
.
Name
,
rel
.
Chart
.
Metadata
.
Version
)
fmt
.
Printf
(
"CHART: %s %s
\n
"
,
rel
.
Chart
.
Metadata
.
Name
,
rel
.
Chart
.
Metadata
.
Version
)
fmt
.
Printf
(
"release.manifest: %s
\n
"
,
rel
.
Manifest
)
fmt
.
Printf
(
"MANIFEST: %s
\n
"
,
rel
.
Manifest
)
}
else
{
fmt
.
Println
(
rel
.
Name
)
}
}
}
}
...
@@ -99,7 +99,6 @@ func fatalf(format string, args ...interface{}) {
...
@@ -99,7 +99,6 @@ func fatalf(format string, args ...interface{}) {
func
init
()
{
func
init
()
{
installCmd
.
Flags
()
.
StringVar
(
&
tillerHost
,
"host"
,
defaultHost
,
"address of tiller server"
)
installCmd
.
Flags
()
.
StringVar
(
&
tillerHost
,
"host"
,
defaultHost
,
"address of tiller server"
)
installCmd
.
Flags
()
.
BoolVarP
(
&
verbose
,
"verbose"
,
"v"
,
false
,
"enable verbose install"
)
installCmd
.
Flags
()
.
BoolVar
(
&
installDryRun
,
"dry-run"
,
false
,
"simulate an install"
)
installCmd
.
Flags
()
.
BoolVar
(
&
installDryRun
,
"dry-run"
,
false
,
"simulate an install"
)
RootCommand
.
AddCommand
(
installCmd
)
RootCommand
.
AddCommand
(
installCmd
)
...
...
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