Sha256: 4c75f72b0a345ed97f2f2013576ef08b98e82cda1014494c03e3733365621142
Contents?: true
Size: 594 Bytes
Versions: 9
Compression:
Stored size: 594 Bytes
Contents
# frozen_string_literal: true require 'thor' require 'whatup/client/client' module Whatup module CLI # Client commands class Client < Thor option :ip, type: :string, default: 'localhost' option :port, type: :numeric, default: 9_001 long_desc <<~DESC Starts a client instance sending requests to the specified ip and port. DESC desc 'connect', 'Connects a new client instance to a server' def connect config = {ip: options[:ip], port: options[:port]} Whatup::Client::Client.new(config).connect end end end end
Version data entries
9 entries across 9 versions & 1 rubygems