Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use HEREDOC on strings #34

Closed
faustinoaq opened this issue May 29, 2018 · 0 comments
Closed

Use HEREDOC on strings #34

faustinoaq opened this issue May 29, 2018 · 0 comments

Comments

@faustinoaq
Copy link
Contributor

See: https://github.com/amberframework/micrate/blob/master/src/micrate/cli.cr#L65

This'd look better with HEREDOC syntax:

  puts <<-MESSAGE
  Micrate will not run these migrations because they may have been written with an older database model in mind.
  You should probably check if they need to be updated and rename them so they are considered a newer version.
  MESSAGE
end

def self.print_help
  puts <<-HELP
  micrate is a database migration management system for Crystal projects, *heavily* inspired by Goose (https://bitbucket.org/liamstask/goose/).
  
  Usage:
      micrate [options] <subcommand> [-h] [subcommand options]
  Commands:
      up         Migrate the DB to the most recent version available
      down       Roll back the version by 1
      to         Migrate exact to the given version (e.g. micrate to -v 20160524162446)
      <version>  Shorthand for 'micrate to' (e.g. micrate 20160524162446)
      redo       Re-run the latest migration
      status     dump the migration status for the current DB
      create     Create the scaffolding for a new migration
      dbversion  Print the current version of the database
      help       Shows this message
  HELP
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants