Sha256: 6c5cb729a1fe9bf95500bbcd35dcf457a4a5ce3563e1816e3d5622188689d505

Contents?: true

Size: 986 Bytes

Versions: 15

Compression:

Stored size: 986 Bytes

Contents

#!/usr/bin/env ruby

STDOUT.sync = true
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'j1'
require 'mercenary'

Mercenary.program(:j1) do |p|

  p.version J1::VERSION
  p.description 'J1 Template MDE 4 is a gem-based Template made for Jekyll powered by Bootstrap v4'
  p.syntax 'j1 <subcommand> [options]'

  p.command(:generate) do |c|
    c.syntax 'generate PATH' # do not include the program name or super commands
    c.description 'Generates a starter site scaffold in PATH'
    c.option 'force', '--force', 'Force a site to be created even the PATH already exists'
    c.option "skip-bundle", "--skip-bundle", "Skip 'bundle install'"
    c.option "skip-patches", "--skip-patches", "Skip to install any PATCHES buildin with J1"
    c.option "system", "--system", "Run 'bundle install' for the Ruby SYSTEM gem folder"
    c.action do |args, options|
      J1::Commands::Generate.process(args, options)
    end
  end

  p.default_command(:generate)
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
j1-template-2021.0.16 exe/j1
j1-template-2021.0.15 exe/j1
j1-template-2021.0.14 exe/j1
j1-template-2021.0.13 exe/j1
j1-template-2021.0.12 exe/j1
j1-template-2021.0.11 exe/j1
j1-template-2021.0.10 exe/j1
j1-template-2021.0.9 exe/j1
j1-template-2021.0.8 exe/j1
j1-template-2021.0.7 exe/j1
j1-template-2021.0.6 exe/j1
j1-template-2021.0.5 exe/j1
j1-template-2021.0.4 exe/j1
j1-template-2021.0.3 exe/j1
j1-template-2021.0.2 exe/j1