Sha256: 32c40b143f1bb976924a509ca8fe322265f169c3288574730716161cc86f7ded

Contents?: true

Size: 402 Bytes

Versions: 7

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module SdrClient
  # The command line interface
  module CLI
    def self.start(command, options)
      case command
      when 'deposit'
        SdrClient::Deposit.run(options)
      when 'login'
        status = SdrClient::Login.run(options)
        puts status.value if status.failure?
      else
        raise "Unknown command #{command}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sdr-client-0.7.1 lib/sdr_client/cli.rb
sdr-client-0.7.0 lib/sdr_client/cli.rb
sdr-client-0.6.0 lib/sdr_client/cli.rb
sdr-client-0.5.0 lib/sdr_client/cli.rb
sdr-client-0.4.0 lib/sdr_client/cli.rb
sdr-client-0.3.1 lib/sdr_client/cli.rb
sdr-client-0.3.0 lib/sdr_client/cli.rb