Sha256: 04586261e07668e4d9f4f534a7f54ba2e2c7f590932d85179ad84b9c623949b5

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

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'
require 'webgen/cli/show_tree_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)
        add_command(ShowTreeCommand.new)
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webgen-1.0.0.beta3 lib/webgen/cli/show_command.rb
webgen-1.0.0.beta2 lib/webgen/cli/show_command.rb