Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Modern CLI Applications in Go

You're reading from   Building Modern CLI Applications in Go Develop next-level CLIs to improve user experience, increase platform usage, and maximize production

Arrow left icon
Product type Paperback
Published in Mar 2023
Publisher Packt
ISBN-13 9781804611654
Length 406 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Marian Montagnino Marian Montagnino
Author Profile Icon Marian Montagnino
Marian Montagnino
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Preface 1. Part 1: Getting Started with a Solid Foundation
2. Chapter 1: Understanding CLI Standards FREE CHAPTER 3. Chapter 2: Structuring Go Code for CLI Applications 4. Chapter 3: Building an Audio Metadata CLI 5. Chapter 4: Popular Frameworks for Building CLIs 6. Part 2: The Ins and Outs of a CLI
7. Chapter 5: Defining the Command-Line Process 8. Chapter 6: Calling External Processes and Handling Errors and Timeouts 9. Chapter 7: Developing for Different Platforms 10. Part 3: Interactivity and Empathic Driven Design
11. Chapter 8: Building for Humans versus Machines 12. Chapter 9: The Empathic Side of Development 13. Chapter 10: Interactivity with Prompts and Terminal Dashboards 14. Part 4: Building and Distributing for Different Platforms
15. Chapter 11: Custom Builds and Testing CLI Commands 16. Chapter 12: Cross-Compilation across Different Platforms 17. Chapter 13: Using Containers for Distribution 18. Chapter 14: Publishing Your Go Binary as a Homebrew Formula with GoReleaser 19. Index 20. Other Books You May Enjoy

Understanding CLI Standards

The Command-Line Interface (CLI) is a text-based interface for humans, and computer interaction was initially designed as a way of interacting with an Operating System (OS) before the desktop graphical interface was invented. The CLI, as we know it today, was in popular use in the 1960s until the graphical desktop interface was developed a decade later. However, although most computer users are used to the graphical user interface (GUI) and web, there’s been a resurgence of CLI development circa 2017. Popular and new use cases for the retro CLI vary, but its most popular usage is as an additional offering alongside a company’s API for increased platform usage.

In this chapter, you will learn about the comprehensive history of the CLI, what it is today, and a breakdown of its anatomy. You will learn about UNIX’s philosophy and how following its principles will guide you toward the creation of a successful CLI.

By the end of this chapter, you’ll have a deeper understanding of the CLI, how best to design and implement proven, time-tested standards, and why Go, which has become an increasingly popular language, has a compelling case for being the best language to build your CLI.

In this chapter, we are going to cover the following main topics:

  • A brief introduction and history of the command line
  • The philosophy of CLI development
  • Modern CLI guidelines
  • Go for CLIs
You have been reading a chapter from
Building Modern CLI Applications in Go
Published in: Mar 2023
Publisher: Packt
ISBN-13: 9781804611654
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image