New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Port Conflict Error #1033
Fix Port Conflict Error #1033
Conversation
To find out whether they are being used by other applications.
For linux and osx
Also check message option flags and assign them to config
cmd/cmd_root.go
Outdated
@@ -31,6 +31,27 @@ func GetRootCommand() *cobra.Command { | |||
} | |||
} | |||
|
|||
showErrors, err := cmd.Flags().GetBool("show-errors") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this being handled by globalFlags.MergeToConfig(config)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabioDMFerreira oh you right ... I will move that line outside the if
block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by 70a813b
cmd/cmd_pkg.go
Outdated
@@ -246,3 +245,14 @@ func loadCommandHandler(cmd *cobra.Command, args []string) { | |||
exitWithError(err.Error()) | |||
} | |||
} | |||
|
|||
func excludeWhitespaces(arr []string) []string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it make sense to move to another file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fabioDMFerreira how about moved to separated util
package ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by ca51410
Fixed port conflict error message to be human-readable