DannyBen/runfile

View on GitHub
examples/import/tasks/server.runfile

Summary

Maintainability
Test Coverage
summary 'Server management commands'

action 'start' do |_args|
  say "Context: #{context[:anything]}"
  say 'g`Starting server`'
end

usage 'stop [--force]'
help  'Stop the server, with optional hard quit'
option '--force, -f', 'Force quit'
action 'stop' do |args|
  say 'r`Stopping server`'
  say 'rib` FORCE QUIT `' if args['--force']
end