Sha256: 1e6526f404f450a727e428504d1b1eef9fe20552da3ea3088c315987206d1a22

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'webgen/cli/utils'
require 'webgen/cli/show_extensions_command'
require 'webgen/cli/show_config_command'
require 'webgen/cli/show_dependencies_command'

module Webgen
  module CLI

    # The CLI command for showing various information about webgen itself or a webgen website.
    class ShowCommand < CmdParse::Command

      def initialize # :nodoc:
        super('show', true, true, false)
        self.short_desc = 'Show various information about webgen or a website'
        self.description = Webgen::CLI::Utils.format_command_desc(<<DESC)
Groups various commands together that are used for showing information about webgen,
like available extensions or configuration options. If a sub-command is invoked in the
context of a webgen website, information about the website is also included.
DESC
        add_command(ShowConfigCommand.new)
        add_command(ShowExtensionsCommand.new)
        add_command(ShowDependenciesCommand.new)
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webgen-1.0.0.beta1 lib/webgen/cli/show_command.rb