-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from jensoncs/master
[Jenson|Roy] Enforce Proctor Client upgrade
- Loading branch information
Showing
17 changed files
with
279 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
package version | ||
|
||
import ( | ||
"fmt" | ||
"github.com/fatih/color" | ||
"github.com/gojektech/proctor/io" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
const ClientVersion = "v0.2.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("😊 Proctor: A Developer Friendly Automation Orchestrator v0.2.0", color.Reset) | ||
printer.Println(fmt.Sprintf("Proctor: A Developer Friendly Automation Orchestrator %v",ClientVersion), color.Reset) | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.