Sha256: 96870402548215b47a33849979b4029eee3f0cfa421d9cdaeca558b5763f7118

Contents?: true

Size: 1.54 KB

Versions: 5

Compression:

Stored size: 1.54 KB

Contents

# frozen_string_literal: true

require_relative 'howzit/version'
require_relative 'howzit/prompt'
require_relative 'howzit/colors'
require_relative 'howzit/stringutils'

require_relative 'howzit/hash'
require_relative 'howzit/console_logger'
require_relative 'howzit/util'
require_relative 'howzit/config'
require_relative 'howzit/task'
require_relative 'howzit/topic'
require_relative 'howzit/buildnote'

require 'optparse'
require 'shellwords'
require 'pathname'
require 'readline'
require 'tempfile'
require 'yaml'

require 'tty/screen'
require 'tty/box'
# require 'tty/prompt'

# Main config dir
CONFIG_DIR = '~/.config/howzit'

# Config file name
CONFIG_FILE = 'howzit.yaml'

# Ignore file name
IGNORE_FILE = 'ignore.yaml'

# Available options for matching method
MATCHING_OPTIONS = %w[partial exact fuzzy beginswith].freeze

# Available options for multiple_matches method
MULTIPLE_OPTIONS = %w[first best all choose].freeze

# Available options for header formatting
HEADER_FORMAT_OPTIONS = %w[border block].freeze

# Main module for howzit
module Howzit
  class << self
    attr_accessor :arguments, :cli_args
    ##
    ## Holds a Configuration object with methods and a @settings hash
    ##
    ## @return     [Configuration] Configuration object
    ##
    def config
      @config ||= Config.new
    end

    def inclusions
      @inclusions ||= []
    end

    def options
      config.options
    end

    def buildnote
      @buildnote ||= BuildNote.new
    end

    def console
      @console ||= Howzit::ConsoleLogger.new(options[:log_level])
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
howzit-2.0.14 lib/howzit.rb
howzit-2.0.13 lib/howzit.rb
howzit-2.0.12 lib/howzit.rb
howzit-2.0.11 lib/howzit.rb
howzit-2.0.10 lib/howzit.rb