|
|
@ -1,7 +1,6 @@
|
|
|
|
package main
|
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
|
|
|
@ -64,8 +63,6 @@ func init() {
|
|
|
|
RootCommand.AddCommand(listCommand)
|
|
|
|
RootCommand.AddCommand(listCommand)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var errListNoReleases = errors.New("no releases found")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func listCmd(cmd *cobra.Command, args []string) error {
|
|
|
|
func listCmd(cmd *cobra.Command, args []string) error {
|
|
|
|
var filter string
|
|
|
|
var filter string
|
|
|
|
if len(args) > 0 {
|
|
|
|
if len(args) > 0 {
|
|
|
@ -88,7 +85,7 @@ func listCmd(cmd *cobra.Command, args []string) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if len(res.Releases) == 0 {
|
|
|
|
if len(res.Releases) == 0 {
|
|
|
|
return errListNoReleases
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if res.Next != "" {
|
|
|
|
if res.Next != "" {
|
|
|
|