Skip to content

v.7 - Add 'search' of Herbs List

Latest
Compare
Choose a tag to compare
@dnndev dnndev released this 20 Apr 16:49
· 2 commits to master since this release

This version demonstrates how to return a single result. It adds a --name flag to use when searching. It searches both the common Name and the ScientificName fields, returning the first found herb. Of note here is that even though we are returning 1 result, we still need to return a List to Prompt. It will automatically detect there's just one result and will display the 'detail' view for that item.