Skip to content
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

Issue #186 more basic IP tools #192

Merged
merged 16 commits into from
Nov 28, 2023
Merged

Conversation

shamirShahzad
Copy link
Contributor

Finished adding all the basic IP Tools which include:

is_loopback
is_multicast
is_unspecified
is_global_unicast
is_interface_local_multicast
is_link_local_multicast
is_link_local_unicast

All new .go files can be found in the ipinfo and lib directories with the file name cmd_tool_NAME OF TOOL also the cmd_tool.go file was modified to allow access to the tools via the cli

shamirShahzad and others added 4 commits November 18, 2023 17:18
2 new files added each in lib and ipinfo folders and modified the cmd_tool.go file to support the is_loopback and is_multicast tool
Added two new files to the lib and ipinfo folders and also modified the cmd_tool.go file in ipinfo folder to add the is_unspecified tool for use
All tools that were asked for in issue ipinfo#186 have been added, the relevent files can be found in the lib and ipinfo directories modifications were made to the cmd_tool.go file in ipinfo directory for the tools to be usable within the cli
ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool_is_global_unicast.go Outdated Show resolved Hide resolved
Copy link
Contributor

@UmanShahzad UmanShahzad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didnt run the fmt'er yet

ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
@shamirShahzad
Copy link
Contributor Author

@UmanShahzad kindly review

Copy link
Contributor

@UmanShahzad UmanShahzad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make 100% sure the help style matches the style of all other existing commands. Too much back-and-forth on this.

ipinfo/cmd_tool.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool_is_global_unicast.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool_is_global_unicast.go Outdated Show resolved Hide resolved
ipinfo/cmd_tool_is_loopback.go Show resolved Hide resolved
@shamirShahzad
Copy link
Contributor Author

@UmanShahzad

Copy link
Contributor

@UmanShahzad UmanShahzad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Command examples are not real it seems. Please make sure you run each command, including your own examples, and that they work and produce the expected results!
  • Error handling? I guess we can copy the is_v4/is_v6 style for now where it's printed. See those files.

ipinfo/cmd_tool_is_unspecified.go Outdated Show resolved Hide resolved
lib/cmd_tool_is_global_unicast.go Show resolved Hide resolved
@shamirShahzad
Copy link
Contributor Author

@UmanShahzad

ipinfo/cmd_tool_is_global_unicast.go Outdated Show resolved Hide resolved
@shamirShahzad
Copy link
Contributor Author

@UmanShahzad

@UmanShahzad UmanShahzad merged commit f3be503 into ipinfo:master Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants