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
a98f701a
Commit
a98f701a
authored
Jun 07, 2017
by
Adam Reese
Committed by
GitHub
Jun 07, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2553 from adamreese/fix/helm-home-stdout
fix(helm): helm home print to stdout
parents
c4a4b966
985dbae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
helm.go
cmd/helm/helm.go
+1
-1
home.go
cmd/helm/home.go
+12
-9
No files found.
cmd/helm/helm.go
View file @
a98f701a
...
...
@@ -155,7 +155,7 @@ func newRootCmd() *cobra.Command {
addFlagsTLS
(
newVersionCmd
(
nil
,
out
)),
newCompletionCmd
(
out
),
newHomeCmd
(),
newHomeCmd
(
out
),
newInitCmd
(
out
),
newPluginCmd
(
out
),
...
...
cmd/helm/home.go
View file @
a98f701a
...
...
@@ -17,6 +17,9 @@ limitations under the License.
package
main
import
(
"fmt"
"io"
"github.com/spf13/cobra"
)
...
...
@@ -25,22 +28,22 @@ This command displays the location of HELM_HOME. This is where
any helm configuration files live.
`
func
newHomeCmd
()
*
cobra
.
Command
{
func
newHomeCmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
cmd
:=
&
cobra
.
Command
{
Use
:
"home"
,
Short
:
"displays the location of HELM_HOME"
,
Long
:
longHomeHelp
,
Run
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
{
h
:=
settings
.
Home
cmd
.
Println
(
h
)
fmt
.
Fprintln
(
out
,
h
)
if
settings
.
Debug
{
cmd
.
Printf
(
"Repository: %s
\n
"
,
h
.
Repository
())
cmd
.
Printf
(
"RepositoryFile: %s
\n
"
,
h
.
RepositoryFile
())
cmd
.
Printf
(
"Cache: %s
\n
"
,
h
.
Cache
())
cmd
.
Printf
(
"Stable CacheIndex: %s
\n
"
,
h
.
CacheIndex
(
"stable"
))
cmd
.
Printf
(
"Starters: %s
\n
"
,
h
.
Starters
())
cmd
.
Printf
(
"LocalRepository: %s
\n
"
,
h
.
LocalRepository
())
cmd
.
Printf
(
"Plugins: %s
\n
"
,
h
.
Plugins
())
fmt
.
Fprintf
(
out
,
"Repository: %s
\n
"
,
h
.
Repository
())
fmt
.
Fprintf
(
out
,
"RepositoryFile: %s
\n
"
,
h
.
RepositoryFile
())
fmt
.
Fprintf
(
out
,
"Cache: %s
\n
"
,
h
.
Cache
())
fmt
.
Fprintf
(
out
,
"Stable CacheIndex: %s
\n
"
,
h
.
CacheIndex
(
"stable"
))
fmt
.
Fprintf
(
out
,
"Starters: %s
\n
"
,
h
.
Starters
())
fmt
.
Fprintf
(
out
,
"LocalRepository: %s
\n
"
,
h
.
LocalRepository
())
fmt
.
Fprintf
(
out
,
"Plugins: %s
\n
"
,
h
.
Plugins
())
}
},
}
...
...
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