Wrapping Up

Let's wrap up this chapter.

We'll cover the following

Summary

In this chapter:

  • We used Cobra to create a command-line application that looks professional.
  • Our application includes detailed help and usage information, POSIX-compatible flags, configuration files, command completion, and documentation.
  • We also used the Cobra generator to create the boilerplate code for these features, allowing us to focus on our business logic to create a functional TCP port scanner for our network.

What will we learn next?

In the next chapter, we’ll use Cobra again to develop a command-line application that connects to web services using the REST standard.

Get hands-on with 1400+ tech skills courses.