Sha256: 15b7aa6b8edf6c49ad72d5954974854e9ea59635763559f51e9302db68440292

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

# frozen_string_literal: true

require 'avm/eac_writings_base0/project_build'
require 'eac_cli/core_ext'
require 'eac_ruby_utils/console/docopt_runner'

module Avm
  module Tools
    class Runner
      class AppSrc
        class EacWritingsBase0
          class Info
            runner_with :help do
              desc 'Information about a loca EacRailsBase0 local project.'
            end

            def run
              runner_context.call(:project_banner)
              infov 'Chapters', project.chapters.count
              project.chapters.each_with_index do |chapter, index|
                infov "  * #{index + 1}", chapter
              end
            end

            private

            def project
              runner_context.call(:project)
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
avm-tools-0.97.0 lib/avm/tools/runner/app_src/eac_writings_base0/info.rb
avm-tools-0.96.0 lib/avm/tools/runner/app_src/eac_writings_base0/info.rb