Skip to content

Releases: dnndev/sofried-201704

v.7 - Add 'search' of Herbs List

20 Apr 16:49
Compare
Choose a tag to compare

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

20 Apr 14:23
Compare
Choose a tag to compare

This version adds the fieldOrder property to the results. fieldOrder can be used to perform 2 things:

  1. Changing the default order of the columns in the display
  2. 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`

20 Apr 14:10
Compare
Choose a tag to compare

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

20 Apr 11:36
Compare
Choose a tag to compare

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

20 Apr 11:20
Compare
Choose a tag to compare

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

20 Apr 00:40
Compare
Choose a tag to compare

Now the command does what it's supposed to do. It returns the system's current date and time.

v.1 - Basic Command Skeleton

20 Apr 00:25
Compare
Choose a tag to compare

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.