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
9a92f99d
Commit
9a92f99d
authored
Mar 21, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(cli): remove 'helm list'
Also, make the debug bool locally scoped.
parent
68f25347
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
deployment.go
cmd/helm/deployment.go
+0
-9
helm.go
cmd/helm/helm.go
+4
-4
No files found.
cmd/helm/deployment.go
View file @
9a92f99d
...
...
@@ -25,7 +25,6 @@ import (
)
func
init
()
{
//addCommands(listCmd())
addCommands
(
deploymentCommands
())
}
...
...
@@ -62,14 +61,6 @@ func deploymentCommands() cli.Command {
}
}
func
listCmd
()
cli
.
Command
{
return
cli
.
Command
{
Name
:
"list"
,
Usage
:
"Lists the deployments in the cluster"
,
Action
:
func
(
c
*
cli
.
Context
)
{
run
(
c
,
list
)
},
}
}
func
list
(
c
*
cli
.
Context
)
error
{
list
,
err
:=
NewClient
(
c
)
.
ListDeployments
()
if
err
!=
nil
{
...
...
cmd/helm/helm.go
View file @
9a92f99d
...
...
@@ -31,11 +31,11 @@ func init() {
addCommands
(
cmds
()
...
)
}
//
D
ebug indicates whether the process is in debug mode.
//
d
ebug indicates whether the process is in debug mode.
//
// This is set at app start-up time, based on the presence of the --debug
// flag.
var
D
ebug
bool
var
d
ebug
bool
func
main
()
{
app
:=
cli
.
NewApp
()
...
...
@@ -63,7 +63,7 @@ func main() {
},
}
app
.
Before
=
func
(
c
*
cli
.
Context
)
error
{
D
ebug
=
c
.
GlobalBool
(
"debug"
)
d
ebug
=
c
.
GlobalBool
(
"debug"
)
return
nil
}
app
.
Run
(
os
.
Args
)
...
...
@@ -92,5 +92,5 @@ func run(c *cli.Context, f func(c *cli.Context) error) {
func
NewClient
(
c
*
cli
.
Context
)
*
client
.
Client
{
host
:=
c
.
GlobalString
(
"host"
)
timeout
:=
c
.
GlobalInt
(
"timeout"
)
return
client
.
NewClient
(
host
)
.
SetDebug
(
D
ebug
)
.
SetTimeout
(
timeout
)
return
client
.
NewClient
(
host
)
.
SetDebug
(
d
ebug
)
.
SetTimeout
(
timeout
)
}
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