Releases: dnndev/sofried-201704
v.7 - Add 'search' of Herbs List
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.
v.6 - Using `fieldOrder` to Re-Order and Filter Columns
This version adds the fieldOrder
property to the results. fieldOrder
can be used to perform 2 things:
- Changing the default order of the columns in the display
- Removing columns from the display without having to create a different Model
This version removes the Songs column from the display and re-orders the remaining columns so that ScientificName is first and Name is second.
v.5 - Implement List Results with `list-herbs`
This version adds a new command called list-herbs
. It's purpose is to show you how to return a list of objects and have them displayed as a table.
v.4 - Require the --format Flag
In this version, instead of setting a default value for the --format
flag, it requires the user pass the flag. This version shows how to use the ValidationMessage property.
NOTE: the ValidationMessage property has been modified from read-only to public read/private write so the class can set the value but it is read-only to everyone else.
v.3 - Add --format Flag
This version adds a flag to our command: --format. The value you pass for --format will be used to format the date. This version uses a const to hold the name of the flag (i.e. 'format') so that typos in our code don't cause problems. It also shows how to use Prompt's HasFlag() and Flag() functions to determine if a flag exists and to retrieve that flag's value.
v.2 - Return the System Date and Time
Now the command does what it's supposed to do. It returns the system's current date and time.
v.1 - Basic Command Skeleton
This release reflects the get-time
command in its most basic form. It doesn't do anything beyond return the word "Success". It's a great place to copy and paste the code to start a new project.