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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dsl --verify failure message a bit #314

Merged
merged 2 commits into from
May 18, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/tapioca/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,9 @@ def perform_dsl_verification(dir)
if diff.empty?
say("Nothing to do, all RBIs are up-to-date.")
else
say("RBI files are out-of-date, please run:")
say(" `#{Config::DEFAULT_COMMAND} dsl`")
say("RBI files are out-of-date. In your development environment, please run:", [:green, :bold])
RyanBrushett marked this conversation as resolved.
Show resolved Hide resolved
say(" `#{Config::DEFAULT_COMMAND} dsl`", [:green, :bold])
say("Once it is complete, be sure to commit and push any changes", [:green, :bold])
RyanBrushett marked this conversation as resolved.
Show resolved Hide resolved

say("")

Expand Down
6 changes: 4 additions & 2 deletions spec/tapioca/cli_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,9 @@ class Image
Checking for out-of-date RBIs...


RBI files are out-of-date, please run:
RBI files are out-of-date. In your development environment, please run:
`bin/tapioca dsl`
Once it is complete, be sure to commit and push any changes

Reason:
File(s) added:
Expand Down Expand Up @@ -692,8 +693,9 @@ class Image
Checking for out-of-date RBIs...


RBI files are out-of-date, please run:
RBI files are out-of-date. In your development environment, please run:
`bin/tapioca dsl`
Once it is complete, be sure to commit and push any changes

Reason:
File(s) changed:
Expand Down