Sha256: 2e59ff851ebaaa2763bc91bd51ebc39fd50d53a9195607f456049d5b97f1ae1c

Contents?: true

Size: 736 Bytes

Versions: 6

Compression:

Stored size: 736 Bytes

Contents

module Lono::Bundler
  class List < CLI::Base
    def run
      file = LB.config.lockfile
      unless File.exist?(file)
        logger.info "No #{file} found".color(:red)
        logger.info "Maybe run: lono bundle"
        return
      end

      logger.info "Components included by #{file}\n\n"
      presenter = CliFormat::Presenter.new(@options.merge(format: "table"))
      presenter.header = ["Name", "Type"]
      lockfile.components.each do |component|
        row = [component.name, component.type]
        presenter.rows << row
      end
      presenter.show
      logger.info "\nUse `lono bundle info` to print more detailed information about a component"
    end

    def lockfile
      Lockfile.instance
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/bundler/list.rb
lono-8.0.0.pre.rc5 lib/lono/bundler/list.rb
lono-8.0.0.pre.rc4 lib/lono/bundler/list.rb
lono-8.0.0.pre.rc3 lib/lono/bundler/list.rb
lono-8.0.0.pre.rc2 lib/lono/bundler/list.rb
lono-8.0.0.pre.rc1 lib/lono/bundler/list.rb