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, ...

Get Crystal Programming 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.