Class: Command

Inherits:
Bridgetown::Command
  • Object
show all
Includes:
Utils
Defined in:
lib/bridgetown-plugin-tailwindcss/command.rb

Class Method Summary collapse

Methods included from Utils

#prepend_to_file

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, options|
      generate_tailwind
    end
  end
end