Skip to content

Commit aac935f

Browse files
arvind-choudhary-hHarness
authored andcommitted
Release ready for version 1.0.0 (#117)
* f60642 []: updated logging
1 parent 4782911 commit aac935f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cmd/hc/main.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
var version = "dev"
2727

2828
func main() {
29-
var showVersion bool
3029
var verbose bool
3130

3231
rootCmd := &cobra.Command{
@@ -38,14 +37,6 @@ func main() {
3837
3938
Find more information at:
4039
https://developer.harness.io/docs/`),
41-
Run: func(cmd *cobra.Command, args []string) {
42-
if showVersion {
43-
fmt.Printf("hc version %s\n", version)
44-
fmt.Printf("Built with %s\n", runtime.Version())
45-
return
46-
}
47-
cmd.Help()
48-
},
4940
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
5041
// Skip loading config for auth commands, version, and upgrade
5142
if cmd.CommandPath() == "hc auth" ||
@@ -103,9 +94,6 @@ func main() {
10394
// Add verbose flag
10495
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose logging to console")
10596

106-
// Add version flag
107-
rootCmd.Flags().BoolVar(&showVersion, "version", false, "Print version information")
108-
10997
// Load auth config
11098
authConfig, err := loadAuthConfig()
11199
if err == nil {

0 commit comments

Comments
 (0)