module

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))
Source
common_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.

Source
parse_time(tstr : String) : Time
Source
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.

Source

Nested types