lib/terminalwire/thor.rb in terminalwire-0.1.3 vs lib/terminalwire/thor.rb in terminalwire-0.1.4
- old
+ new
@@ -34,9 +34,13 @@
:stdout, :stdin, :stderr, :browser
def_delegators :stdout,
:puts, :print
def_delegators :stdin,
:gets
+
+ # Feels more naturual to call `client.files` etc. from
+ # the serve since it's more apparent that it's a client.
+ alias :client :context
end
end
end
module ClassMethods