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
ff845df3
Commit
ff845df3
authored
Jun 02, 2016
by
Ville Aikas
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #783 from vaikas-google/master
Do not return an error if no matches found
parents
801c41c3
84055049
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
list.go
cmd/helm/list.go
+1
-4
search.go
cmd/helm/search.go
+0
-2
No files found.
cmd/helm/list.go
View file @
ff845df3
package
main
import
(
"errors"
"fmt"
"strings"
...
...
@@ -64,8 +63,6 @@ func init() {
RootCommand
.
AddCommand
(
listCommand
)
}
var
errListNoReleases
=
errors
.
New
(
"no releases found"
)
func
listCmd
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
var
filter
string
if
len
(
args
)
>
0
{
...
...
@@ -88,7 +85,7 @@ func listCmd(cmd *cobra.Command, args []string) error {
}
if
len
(
res
.
Releases
)
==
0
{
return
errListNoReleases
return
nil
}
if
res
.
Next
!=
""
{
...
...
cmd/helm/search.go
View file @
ff845df3
...
...
@@ -35,8 +35,6 @@ func search(cmd *cobra.Command, args []string) error {
for
_
,
result
:=
range
results
{
fmt
.
Println
(
result
)
}
}
else
{
return
errors
.
New
(
"No matches found"
)
}
return
nil
}
...
...
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