Method: Jets::Commands::New.cli_options

Defined in:
lib/jets/commands/new.rb

.cli_optionsObject

Ugly, but when the class_option is only defined in the Thor::Group class it doesnt show up with jets new help :( If anyone knows how to fix this let me know.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/jets/commands/new.rb', line 9

def self.cli_options
  [
    [:bootstrap, type: :boolean, default: true, desc: "Install bootstrap css"], # same option in WebpackerTemplate
    [:database, type: :string, default: 'mysql', desc: "Preconfigure database (options: mysql/postgresql)"],
    [:force, type: :boolean, desc: "Bypass overwrite are you sure prompt for existing files."],
    [:git, type: :boolean, default: true, desc: "Git initialize the project"],
    [:mode, default: 'html', desc: "mode: #{VALID_MODES.join(',')}"],
    [:repo, desc: "GitHub repo to use. Format: user/repo"],
    [:webpacker, type: :boolean, default: true, desc: "Install webpacker"],
  ]
end