Class: Command
- Inherits:
-
Bridgetown::Command
- Object
- Bridgetown::Command
- Command
- Includes:
- Utils
- Defined in:
- lib/bridgetown-plugin-tailwindcss/command.rb
Class Method Summary collapse
Methods included from Utils
Class Method Details
.init_with_program(prog) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/bridgetown-plugin-tailwindcss/command.rb', line 8 def init_with_program(prog) prog.command(:init) do |c| c.syntax "init" c.description 'Initialize config for Tailwind' # c.option 'path', '--path', 'Choose the path to install tailwind' c.action do |args, | generate_tailwind end end end |