Sha256: 4379e1dd723f06d6959a7455812da82e72ddda35a98b0c6e4ded5f516e83ba58

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

require 'internet'
require 'views/cli'
require 'use_cases/new'
require 'use_cases/list'
require 'settings_file'
require 'io/directory_info'

module Idonethis::Adapters
  class Cli
    class << self
      def run(argv={})
        adapters = {
          internet: Idonethis::Adapters::Internet,
          git:      Idonethis::Adapters::Git,
          fs:       Idonethis::Adapters::IO::DirectoryInfo,
          views:    { list: Idonethis::Adapters::Views::Cli::List.method(:apply)},
          settings: Settings,
          log:      ->(msg){puts "[LOG] #{msg}"}}

        Idonethis::UseCases::Cli.apply argv, adapters
      end
    end
  end
end
     

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
idonethis-cli-0.14.0 lib/adapters/cli.rb