
clif.dev docs
Advanced: branching logic
In the Level up: lookup command article, you created a lookup
command that prints a ticker's prices between dates you provide in an ASCII table like this:
$ clif lookup AAPL --from 2022-06-01 --to 2022-06-06
┌────────────┬────────────────┐
│ Date │ Closing Price │
├────────────┼────────────────┤
│ 06/01/2022 │ $148.71 │
├────────────┼────────────────┤
│ 06/02/2022 │ $151.21 │
├────────────┼────────────────┤
│ 06/03/2022 │ $145.38 │
├────────────┼────────────────┤
│ 06/06/2022 │ $146.14 │
└────────────┴────────────────┘
This article will show you how to add conditional logic to your CLI commands using branching.
Next - Install and explore the Clif example CLI