Sha256: a593ae3ffebea614656234eaae0ede3e6131f763964ae3a69a2c4d25db9adaa6
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true require "alacritty_themes/version" require_relative "alacritty_themes/parser" require_relative "alacritty_themes/file_helper" module AlacrittyThemes class Error < StandardError; end class CLI # :nodoc: include FileHelper def start(argv) options = parse_options(argv) execute_command(options) end private def parse_options(argv) Parser.from(argv) end def execute_command(options) if options[:command] == :create create_directory_path unless does_path_exist? create_backup_file if does_file_exist? create_file end puts options[:message] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alacritty_themes-0.1.4 | lib/alacritty_themes.rb |