Chapter 27. Command-Line Utilities
Earlier in this book, you used the macOS command-line tool template to create two projects: MonsterTown and CyclicalAssets. Those exercises were designed to give you a place to explore the Swift language; they were not real, useful tools.
As a Swift developer, you now have the ability to create command-line tools that you can use to automate common tasks, perform calculations, transform data, and more. In this chapter, you will build a tool that can process command-line options and arguments, interactively accept user input, and be run outside of Xcode.
Introduction to the Command Line
Command-line tools are so named because users interact with them using a command-line interface (CLI), often via the Terminal ...
Get Swift Programming: The Big Nerd Ranch Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.