Method: Jekyll::Commands::Build.init_with_program

Defined in:
lib/jekyll/commands/build.rb

.init_with_program(prog) ⇒ Object

Create the Mercenary command for the Jekyll CLI for this Command



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/jekyll/commands/build.rb', line 8

def init_with_program(prog)
  prog.command(:build) do |c|
    c.syntax      "build [options]"
    c.description "Build your site"
    c.alias :b

    add_build_options(c)

    c.action do |_, options|
      options["serving"] = false
      process_with_graceful_fail(c, options, self)
    end
  end
end