Sha256: 86a6c312667324acde85b3af7f3b5ab6d1026448da87f3ba7d65f60475d04c93
Contents?: true
Size: 911 Bytes
Versions: 6
Compression:
Stored size: 911 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path("../../lib", __FILE__) require "3llo" require 'container' require 'tty-prompt' $container = Container.new $container.register(:api_client, Tr3llo::Client) prompt = TTY::Prompt.new $container.register(:interface, Tr3llo::Interface.new(prompt, $stdout)) configuration = Tr3llo::Configuration.new configuration.user_id = ENV.fetch('TRELLO_USER') { raise "Have you set TRELLO_USER?" } configuration.api_key = ENV.fetch('TRELLO_KEY') { raise "Have you set TRELLO_KEY?" } configuration.api_token = ENV.fetch('TRELLO_TOKEN') { raise "Have you set TRELLO_TOKEN?" } configuration.finalize! $container.register( :configuration, configuration ) user = Tr3llo::API::User.find($container.resolve(:configuration).user_id) $container.register(:user, user) Tr3llo::Presenter::HelpPresenter .new($container.resolve(:interface)) .print! Tr3llo::Controller.new.start
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
3llo-0.2.0 | bin/3llo |
3llo-0.1.12 | bin/3llo |
3llo-0.1.11 | bin/3llo |
3llo-0.1.10 | bin/3llo |
3llo-0.1.9 | bin/3llo |
3llo-0.1.9.beta | bin/3llo |