Sha256: 12214d4326fd6c2cab32cbe479dce3d9dd8cb36e785bcddb3f56992f0d44d3ae
Contents?: true
Size: 809 Bytes
Versions: 2
Compression:
Stored size: 809 Bytes
Contents
# frozen_string_literal: true require "tty-prompt" module RailsApp class CLI def self.start prompt = TTY::Prompt.new app_name = prompt.ask("What is the name of your application?", required: true) assets = prompt.select("How would you like to manage assets?", %w[propshaft sprockets]) styling_choices = [ {name: "Bootstrap", value: "bootstrap"}, {name: "Tailwind CSS", value: "tailwindcss", disabled: "(coming soon)"}, {name: "Bulma", value: "bulma", disabled: "(coming soon)"}, {name: "PostCSS", value: "postcss"}, {name: "SASS", value: "sass"} ] styling = prompt.select("How would you like to manage styling?", styling_choices) Command.new(app_name: app_name, assets: assets, styling: styling).run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_app-0.5.0 | lib/rails_app/cli.rb |
rails_app-0.4.0 | lib/rails_app/cli.rb |