Skip to content

Commit

Permalink
chore: Thor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgns committed Mar 28, 2024
1 parent 05614c0 commit e77af98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ditty/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class CLI < Thor

register ::Ditty::Generators::MigrationGenerator, 'migration', 'migration NAME', 'Create a new Sequel migration'

default_task :server
default_task :help

desc 'server', 'Start the Ditty server'
require './application' if File.exist?('application.rb')
Expand Down Expand Up @@ -58,6 +58,10 @@ def server
Rack::Server.start(rack_opts)
end

def self.exit_on_failure?
true
end

desc 'migrate', 'Run the Ditty migrations'
def migrate
# Prep Ditty
Expand Down

0 comments on commit e77af98

Please sign in to comment.