class StandupMD::Config::Cli
The configuration class for StandupMD::Cli
Attributes
When writing a new entry, should 'previous' be pulled from the last entry?
@param [Boolean] auto_fill_previous
@return [Boolean]
The date to use to find the file.
@param [Date] date
@return [Date]
Should the cli edit?
@param [Boolean] edit
@return [Boolean]
The editor to use when opening standup files. If one is not set, the first of $VISUAL, $EDITOR, or vim will be used, in that order.
@param [String] editor
@return [String]
Should the cli print the entry?
@param [Boolean] print
@return [Boolean]
Should the cli print verbose output?
@param [Boolean] verbose
@return [Boolean]
Should the cli write the file?
@param [Boolean] write
@return [Boolean]
Public Class Methods
Initializes the config with default values.
# File lib/standup_md/config/cli.rb, line 78 def initialize reset end
Public Instance Methods
Sets all config values back to their defaults.
@return [Boolean] true if successful
# File lib/standup_md/config/cli.rb, line 86 def reset @date = Date.today @editor = set_editor @verbose = false @edit = true @write = true @print = false @auto_fill_previous = true @preference_file = ::File.expand_path(::File.join(ENV['HOME'], '.standuprc')) end