Building a Decision-Making CLI Tool in Rust: "should-i"
dev.to·8h·
Discuss: DEV
Flag this post

Introduction

“What should I have for lunch?” “Should I try this new library?” From daily small decisions to technical choices, we face countless decisions every day. Why not let the universe decide for you?

I built a CLI tool called “should-i” that helps you make decisions by consulting the yesno.wtf API. In this article, I’ll share the implementation details and technical insights.

What is should-i?

should-i is a simple CLI tool that answers your questions with YES/NO/MAYBE. It also returns a GIF image URL, making the experience more engaging and visual.

Basic Usage

Browser GIF Display with –open Option

With the --open option, the tool automatically opens the response GIF in your browser:

$ should-i "take a coffee break" --open
🎲 A...

Similar Posts

Loading similar posts...