Sha256: d89e7c68acd880b0edd723f4ede187cbb9e19177323905d538308cb2795facd6
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true STDOUT.sync = true $LOAD_PATH.unshift File.expand_path("../../bridgetown/lib", __dir__) require "bridgetown" require "mercenary" Bridgetown::PluginManager.require_from_bundler Bridgetown::Deprecator.process(ARGV) Mercenary.program(:bridgetown) do |p| p.version "#{Bridgetown::VERSION.magenta} \"#{Bridgetown::CODE_NAME.yellow}\"" p.description "Bridgetown is a Webpack-aware, Ruby-powered static site generator for the modern Jamstack era" p.syntax "bridgetown <subcommand> [options]" Bridgetown::Command.subclasses.each { |c| c.init_with_program(p) } p.action do |args, _| if args.empty? Bridgetown.logger.error "A subcommand is required." puts p abort else subcommand = args.first unless p.has_command? subcommand Bridgetown.logger.abort_with "fatal: 'bridgetown #{args.first}' could not" \ " be found. You may need to install the bridgetown-#{args.first} gem" \ " or a related gem to be able to use this subcommand." end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bridgetown-core-0.14.1 | bin/bridgetown |
bridgetown-core-0.14.0 | bin/bridgetown |