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
fe60ff17
Commit
fe60ff17
authored
Feb 08, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(debug): add debug flag
parent
4fc6a7b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
helm.go
cmd/helm/helm.go
+10
-0
list.go
cmd/helm/list.go
+1
-1
No files found.
cmd/helm/helm.go
View file @
fe60ff17
...
...
@@ -8,6 +8,7 @@ import (
)
var
version
=
"0.0.1"
var
isDebugging
bool
func
main
()
{
app
:=
cli
.
NewApp
()
...
...
@@ -24,6 +25,15 @@ func main() {
EnvVar
:
"HELM_HOST"
,
Value
:
"https://localhost:8181/FIXME_NOT_RIGHT"
,
},
cli
.
BoolFlag
{
Name
:
"debug"
,
Usage
:
"Enable verbose debugging output"
,
},
}
app
.
Before
=
func
(
ctx
*
cli
.
Context
)
error
{
isDebugging
=
ctx
.
Bool
(
"debug"
)
return
nil
}
app
.
Run
(
os
.
Args
)
...
...
cmd/helm/list.go
View file @
fe60ff17
...
...
@@ -23,7 +23,7 @@ func listCmd() cli.Command {
}
func
list
(
host
string
)
error
{
client
:=
dm
.
NewClient
(
host
)
.
SetDebug
(
true
)
client
:=
dm
.
NewClient
(
host
)
.
SetDebug
(
isDebugging
)
list
,
err
:=
client
.
ListDeployments
()
if
err
!=
nil
{
return
err
...
...
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