Skip to content

Commit

Permalink
Reported helpful error if repository type is unknown.
Browse files Browse the repository at this point in the history
  • Loading branch information
clinton.begin committed Sep 8, 2017
1 parent a7ee0a4 commit d3e096c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
7 changes: 0 additions & 7 deletions commands/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,5 @@ func release(c *cli.Context) error {
}
}

if bumpVersion(project, "patch"); err != nil {
return err
}
if bumpVersion(project, "DEV"); err != nil {
return err
}

return nil
}
3 changes: 3 additions & 0 deletions commands/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package commands

import (
"fmt"
"reflect"

"github.com/cbegin/graven/domain"
"github.com/cbegin/graven/repotool"
Expand Down Expand Up @@ -47,6 +48,8 @@ func repo(c *cli.Context) error {
if err != nil {
return err
}
} else {
fmt.Printf("Unknown repo type: %v. Expected one of %v", repository.Type, reflect.ValueOf(repotool.RepoRegistry).MapKeys())
}
} else {
s, err := yaml.Marshal(repository)
Expand Down
2 changes: 1 addition & 1 deletion project.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: graven
version: 1.0.0-RC1
version: 1.0.0-RC2
artifacts:
- classifier: darwin
targets:
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// graven - This file was generated. It will be overwritten. Do not modify.
package version

var Version="1.0.0-RC1"
var Version="1.0.0-RC2"

0 comments on commit d3e096c

Please sign in to comment.