DannyBen/runfile

View on GitHub
examples/shortcut/runfile

Summary

Maintainability
Test Coverage
import 'server'

# Create command shortcuts
shortcut 'sayhi', 'hello "new runfile user"'
shortcut 's', 'server start'

usage  'hello [NAME]'
help   'Say hello'
action 'hello' do |args|
  name = args['NAME'] || 'You...'
  say "Hello g`#{name}`"
end