Skip to content

Commit

Permalink
[Roy|Akshat] Release v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akshat committed Nov 22, 2018
1 parent 39a7d51 commit c6a8625
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Changelog
All notable changes to this project will be documented in this file.

## [v0.3.0] - 2018-11-22
### Added
- NewRelic Instrumentation
- Connection timeouts from CLI to ProctorD
- Validation for minimum supported version of CLI
- Command to configure CLI
### Modified
- CLI config validations and error messages
### Removed
- `proctor proc ...` commands

## [v0.2.0] - 2018-10-11
### Added
- Configurable kubernetes job retries (on failure)
Expand All @@ -18,3 +29,4 @@ All notable changes to this project will be documented in this file.
- Add Job success and failure metrics

[v0.2.0]: https://github.com/gojektech/proctor/compare/v0.1.0...v0.2.0
[v0.3.0]: https://github.com/gojektech/proctor/compare/v0.2.0...v0.3.0
5 changes: 3 additions & 2 deletions cmd/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ package version

import (
"fmt"

"github.com/fatih/color"
"github.com/gojektech/proctor/io"
"github.com/spf13/cobra"
)

const ClientVersion = "v0.2.0"
const ClientVersion = "v0.3.0"

func NewCmd(printer io.Printer) *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Print version of Proctor command-line tool",
Long: `Example: proctor version`,
Run: func(cmd *cobra.Command, args []string) {
printer.Println(fmt.Sprintf("Proctor: A Developer Friendly Automation Orchestrator %v",ClientVersion), color.Reset)
printer.Println(fmt.Sprintf("Proctor: A Developer Friendly Automation Orchestrator %s", ClientVersion), color.Reset)
},
}
}
3 changes: 2 additions & 1 deletion cmd/version/version_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package version

import (
"fmt"
"testing"

"github.com/fatih/color"
Expand All @@ -20,7 +21,7 @@ func TestVersionCmd(t *testing.T) {
mockPrinter := &io.MockPrinter{}
versionCmd := NewCmd(mockPrinter)

mockPrinter.On("Println", "Proctor: A Developer Friendly Automation Orchestrator v0.2.0", color.Reset).Once()
mockPrinter.On("Println", fmt.Sprintf("Proctor: A Developer Friendly Automation Orchestrator %s", ClientVersion), color.Reset).Once()

versionCmd.Run(&cobra.Command{}, []string{})

Expand Down

0 comments on commit c6a8625

Please sign in to comment.