Sha256: 10b6d812c524a24201b435b4996d01c295b591565a0723cdea7fccc0e8cfac4d
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require "mercenary" require "pry" require_relative "../lib/geolexica_server" Mercenary.program(:geolexica) do |p| p.version GeolexicaServer::VERSION p.syntax "geolexica <subcommand> [options]" p.option "source", "-s", "--source [DIR]", "Source directory (defaults to ./)" p.option "destination", "-d", "--destination [DIR]", "Destination directory (defaults to ./_site)" Jekyll::Commands::Serve.init_with_program(p) Jekyll::Commands::Build.init_with_program(p) p.command(:generate_metadata) do |c| c.syntax "generate-metadata [options]" c.description "Creates a file containing metadata related to current repo" c.action do |_args, options| GeolexicaServer::Generator::Metadata.generate(options) end end p.command(:generate_bibliography) do |c| c.syntax "generate-bibliography [options]" c.description "Creates a directory containing bibliography based on bibliography.yaml file" c.action do |_args, options| GeolexicaServer::Generator::Bibliography.generate(options) end end p.action do |args, _options| puts(p) if args.empty? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geolexica-server-0.0.1 | exe/geolexica |
geolexica-server-0.0.1.pre.beta.pre.32 | exe/geolexica |