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
ad4b595d
Commit
ad4b595d
authored
Mar 22, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(repo:) use run function for error handling
parent
09ebdd36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
19 deletions
+3
-19
repository.go
cmd/helm/repository.go
+3
-19
No files found.
cmd/helm/repository.go
View file @
ad4b595d
...
@@ -20,7 +20,6 @@ import (
...
@@ -20,7 +20,6 @@ import (
"errors"
"errors"
"github.com/codegangsta/cli"
"github.com/codegangsta/cli"
"github.com/kubernetes/helm/pkg/format"
"github.com/kubernetes/helm/pkg/format"
"os"
)
)
func
init
()
{
func
init
()
{
...
@@ -45,12 +44,7 @@ func repoCommands() cli.Command {
...
@@ -45,12 +44,7 @@ func repoCommands() cli.Command {
Usage
:
"The name of the credential."
,
Usage
:
"The name of the credential."
,
},
},
},
},
Action
:
func
(
c
*
cli
.
Context
)
{
Action
:
func
(
c
*
cli
.
Context
)
{
run
(
c
,
addRepo
)
},
if
err
:=
addRepo
(
c
);
err
!=
nil
{
format
.
Err
(
"%s Error adding chart repo: "
,
err
)
os
.
Exit
(
1
)
}
},
},
},
{
{
Name
:
"show"
,
Name
:
"show"
,
...
@@ -61,24 +55,14 @@ func repoCommands() cli.Command {
...
@@ -61,24 +55,14 @@ func repoCommands() cli.Command {
Name
:
"list"
,
Name
:
"list"
,
Usage
:
"List the repositories on the remote manager."
,
Usage
:
"List the repositories on the remote manager."
,
ArgsUsage
:
""
,
ArgsUsage
:
""
,
Action
:
func
(
c
*
cli
.
Context
)
{
Action
:
func
(
c
*
cli
.
Context
)
{
run
(
c
,
listRepos
)
},
if
err
:=
listRepos
(
c
);
err
!=
nil
{
format
.
Err
(
"%s Error listing chart repositories: "
,
err
)
os
.
Exit
(
1
)
}
},
},
},
{
{
Name
:
"remove"
,
Name
:
"remove"
,
Aliases
:
[]
string
{
"rm"
},
Aliases
:
[]
string
{
"rm"
},
Usage
:
"Remove a repository from the remote manager."
,
Usage
:
"Remove a repository from the remote manager."
,
ArgsUsage
:
"REPOSITORY"
,
ArgsUsage
:
"REPOSITORY"
,
Action
:
func
(
c
*
cli
.
Context
)
{
Action
:
func
(
c
*
cli
.
Context
)
{
run
(
c
,
removeRepo
)
},
if
err
:=
removeRepo
(
c
);
err
!=
nil
{
format
.
Err
(
"%s Error removing chart repo: "
,
err
)
os
.
Exit
(
1
)
}
},
},
},
},
},
}
}
...
...
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