Stringventory
Stringventory A small command line application designed to keep an
inventory of guitars and strings.
Constants
VERSION = "1.1.0"
Class methods
add_time(parser : OptionParser, res : Resource, opts : Hash(Symbol, Int | String))
Sourcecommon_opts(parser : OptionParser, res : Resource, opts : Hash(Symbol, Int | String), strings? = true, packs? = true, time? = true, pack_mod = 1)
Function to add common options to the add and update subcommands.
parse_time(tstr : String) : Time
Sourceprint_output(act : Action, res : String, outp : Array(Granite::Base))
Function to print out the results of processing the specified action.
validate_name(opts : Hash(Symbol, Int | String), act : Action)
Function to validate the name field and ensure that it is not empty. Displays help_msg and exits if validation fails.