Class: Appiconset::CLI
- Inherits:
-
Thor
- Object
- Thor
- Appiconset::CLI
- Defined in:
- lib/appiconset/cli.rb
Overview
entry point
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
10 11 12 |
# File 'lib/appiconset/cli.rb', line 10 def exit_on_failure? true end |
Instance Method Details
#generator ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/appiconset/cli.rb', line 23 def generator generator = Appiconset::Generator.new begin generator.config([:input].to_s, [:output].to_s) generator.square_platforms generator.any_platforms rescue StandardError => e warn e. exit(1) end end |
#help ⇒ Object
36 37 38 39 |
# File 'lib/appiconset/cli.rb', line 36 def help super puts 'Online documentation: https://github.com/arthur87/appiconset' end |
#version ⇒ Object
16 17 18 |
# File 'lib/appiconset/cli.rb', line 16 def version puts(Appiconset::VERSION) end |