Sha256: 5553a4693cbb2f2df47e0d54ce68a408ddcfbd02f3cca41508a4ea667c5ab0d5
Contents?: true
Size: 496 Bytes
Versions: 22
Compression:
Stored size: 496 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 rescue SdrClient::Credentials::NoCredentialsError puts 'Log in first' exit(1) end end end
Version data entries
22 entries across 22 versions & 1 rubygems