Next level console apps with Spectre.Console

João Antunes

View at original site


Even if they're not our main focus, many of us regularly create console applications in .NET, be it to test some features, run some benchmarks, or automate some tasks. In all these use cases, we get the job done, but since it’s not the main focus of our day-to-day job, things end up a bit hacky and not as easy to use as they could be. What if I told you we can have our cake and eat it too? In other words, we can create these console applications to help us, but make them more user-friendly without too much hassle.

That's exactly where Spectre.Console comes in. It’s an open source library that helps us create beautiful console applications, from parsing command-line arguments, prompting the user for information, providing progress reports, and much more!

About the Presenter

João Antunes Code, headbang, grouch, repeat!

João Antunes works as a software engineer, mostly with .NET technologies, but he likes to play around with other tech as well. His main interests are software architecture, design, and development, with more focus on the backend, but with a view of the whole stack.

João loves exploring new technologies, discovering new fringe topics to investigate, and diving into over-engineering sessions, but he always tries to remember the basics and how they're essential to everything else.

Related Resources

Params collection in C#
Params collection in C#
Use the params collection in C# so methods can accept a dynamic number of parameters.
File-scoped namespaces and types
File-scoped namespaces and types
Organize code better and reduce bugs by using file-scoped namespaces and objects.
C# Top-level statements
C# Top-level statements
Use top-level statements in C# to reduce boilerplate code.