Sha256: e0bb92737dabc2bae901e6edd852a1d8b91a50b801e472099057d8950a1ae74c
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
# frozen_string_literal: true module Pcli class Main def run(args) options = Options.parse(args) container = Container.new.tap do |c| c.register_instance 'config.endpoint', options[:endpoint] c.register_instance 'input', $stdin c.register_instance 'output', $stdout c.register_instance 'screen', TTY::Screen c.register_instance 'which', TTY::Which c.register_instance 'editor', TTY::Editor c.register_module Services end container.resolve('app').run end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pcli-0.1.1 | lib/pcli/main.rb |
pcli-0.1.0 | lib/pcli/main.rb |