Skip to content

hanami/cli

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

The existing implementation of the rollback command did not work: the target that it passes to `#run_migrations` is the current migration instead of the previous, which results in a no-op.

This change addresses this problem by explicitly targeting the second last applied migration. This change also refactors the logic for when no migrations exist to rollback to provide a clearer message.

At the same time, fix errors from using `Sequel::TimestampMigrator` outside the appropriate `ROM::SQL.with_gateway` block.

Lastly, return `true` from the command so no false error message is output from the CLI.
a6b06e1

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
December 25, 2022 13:01
bin
March 11, 2021 15:56
lib
March 20, 2023 22:32
March 20, 2023 22:32
November 5, 2022 07:13
December 25, 2022 13:01
November 18, 2022 21:04
January 30, 2023 17:43
March 11, 2021 15:56
July 18, 2022 09:26
March 11, 2021 15:56

Hanami::CLI

CLI commands for full-stack Hanami applications.

NOTE: For versions 0.4 and below, there was a general purpose CLI utility library with this same name. That library has since been renamed to dry-rb/dry-cli. Please update your Gemfiles accordingly.

Status

Gem Version CI Depfu

Contact

Rubies

Hanami::RSpec supports Ruby (MRI) 3.0+

Usage

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hanami/cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Hanami::CLI project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Copyright

Copyright © 2014-2022 Hanami Team – Released under MIT License