Sha256: cbd3fa2731283714906135008b2dd4404ee029896198d4865c55fda3b2b7d9df

Contents?: true

Size: 988 Bytes

Versions: 48

Compression:

Stored size: 988 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

48 entries across 48 versions & 1 rubygems

Version Path
j1-template-2022.0.2 exe/j1
j1-template-2022.0.1 exe/j1
j1-template-2022.0.0 exe/j1
j1-template-2021.3.2 exe/j1
j1-template-2021.3.1 exe/j1
j1-template-2021.3.0 exe/j1
j1-template-2021.2.12 exe/j1
j1-template-2021.2.11 exe/j1
j1-template-2021.2.10 exe/j1
j1-template-2021.2.9 exe/j1
j1-template-2021.2.8 exe/j1
j1-template-2021.2.7 exe/j1
j1-template-2021.2.6 exe/j1
j1-template-2021.2.5 exe/j1
j1-template-2021.2.4 exe/j1
j1-template-2021.2.3 exe/j1
j1-template-2021.2.2 exe/j1
j1-template-2021.2.1 exe/j1
j1-template-2021.2.0 exe/j1
j1-template-2021.1.29 exe/j1