-
Notifications
You must be signed in to change notification settings - Fork 157
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
Implements ipinfo tool is_valid
#170
Conversation
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.
Needs to follow subcmd naming style as used in others (snake case not pascal / camel case).
ipinfo/cmd_tool.go
Outdated
@@ -15,6 +15,7 @@ var completionsTool = &complete.Command{ | |||
"next": completionsToolNext, | |||
"prev": completionsToolPrev, | |||
"is_v4": completionsToolIsV4, | |||
"isValid": completionsToolIsValid, |
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.
Should be is_valid
.
ipinfo/cmd_tool_isValid.go
Outdated
`Usage: %s tool IsValid <ip> | ||
|
||
Description: | ||
reports whether the Addr is an initialized address (not the zero Addr). |
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.
Same as above
ipinfo/cmd_tool_isValid.go
Outdated
Examples: | ||
%[1]s IsValid "190.87.89.1" | ||
%[1]s IsValid "2001:0db8:85a3:0000:0000:8a2e:0370:7334" | ||
%[1]s IsValid "::" |
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.
Do provide an invalid example if not already
Co-authored-by: Uman Shahzad <[email protected]>
Co-authored-by: Uman Shahzad <[email protected]>
ipinfo tool isValid
ipinfo tool is_valid
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.
One small fix
ipinfo/cmd_tool_isValid.go
Outdated
`Usage: %s tool is_valid <ip> | ||
|
||
Description: | ||
reports whether the ip address is an initialized address (not the zero Addr). |
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.
I left a comment here as well to update this desc to match the short desc above
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.
Sure! I'll take care of it
No description provided.