Sha256: b0ad9897402a017ce49f71dd7f368ae75ec4f0c43066dd42e10d41a2063c0ada
Contents?: true
Size: 612 Bytes
Versions: 4
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true require 'thor' require_relative 'cli/index' require_relative 'cli/generate' module Esse module CLI def self.start(*args) Root.start(*args) end class Root < Thor map %w[--version -v] => :version desc 'index SUBCOMMAND ...ARGS', 'Manage indices' subcommand 'index', Index desc 'generate SUBCOMMAND ...ARGS', 'Run generators' subcommand 'generate', Generate desc '--version, -v', 'Show package version' def version puts format('Esse version: %<version>s', version: Esse::VERSION) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
esse-0.0.5 | lib/esse/cli.rb |
esse-0.0.4 | lib/esse/cli.rb |
esse-0.0.3 | lib/esse/cli.rb |
esse-0.0.2 | lib/esse/cli.rb |