Chapter 4: Exploring Crystal via Writing a Command-Line Interface
Now that you are familiar with the basics of Crystal, we're ready to put those skills to use. This part will guide you through creating a command-line interface (CLI) that'll make use of the concepts from Chapter 1, An Introduction to Crystal, as well as some new ones.
This chapter will be an introduction to what this part of the book entails, focusing on setting up the project and the first pass at the CLI implementation. The idea is that this chapter does the initial implementation, and then future chapters expand/improve upon it.
The goal of the CLI is to create a program that allows using YAML data with jq, a popular CLI application that allows structured JSON data to be sliced, filtered, mapped, and transformed using a filter to describe that process. This chapter will serve as the starting point of our project, which will cover the following topics:
- Project introduction
- Scaffolding the...