Skip to content

Commit

Permalink
style: add (y/n) to all questions
Browse files Browse the repository at this point in the history
Closes #1
  • Loading branch information
palkan committed Sep 14, 2023
1 parent a52e228 commit 15d32e9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion template/_bin_rubocop.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
has_bin_rubocop = yes?("Would your like to create a standalone RuboCop executable (bin/rubocop)?")
has_bin_rubocop = yes?("Would your like to create a standalone RuboCop executable (bin/rubocop)? (y/n)")

if has_bin_rubocop
file "bin/rubocop", <%= code("bin/rubocop") %>
Expand Down
2 changes: 1 addition & 1 deletion template/_graphql.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
has_graphql = ((specs | deps) & %w[graphql]).any?

if has_graphql && yes?("Would your like to install rubocop-graphql?")
if has_graphql && yes?("Would your like to install rubocop-graphql? (y/n)")
file ".rubocop/graphql.yml", <%= code(".rubocop/graphql.yml") %>
extensions << ".rubocop/graphql.yml"
gems << "rubocop-graphql"
Expand Down
2 changes: 1 addition & 1 deletion template/_rails.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
has_rails = ((specs | deps) & %w[activerecord actionpack rails]).any?

if has_rails && yes?("Would your like to install standard-rails?")
if has_rails && yes?("Would your like to install standard-rails? (y/n)")
plugins << "rubocop-rails"
base_configs << "standard-rails"
gems << "standard-rails"
Expand Down
4 changes: 2 additions & 2 deletions template/_testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
((specs | deps) & %w[rspec-core]).any? && File.directory?("spec")
end

if has_rspec && yes?("Would your like to install rubocop-rspec?")
if has_rspec && yes?("Would your like to install rubocop-rspec? (y/n)")
file ".rubocop/rspec.yml", <%= code(".rubocop/rspec.yml") %>
extensions << ".rubocop/rspec.yml"
gems << "rubocop-rspec"
Expand All @@ -12,7 +12,7 @@
((specs | deps) & %w[rspec-core]).any? && File.directory?("test")
end

if has_minitest && yes?("Would your like to install rubocop-minitest?")
if has_minitest && yes?("Would your like to install rubocop-minitest? (y/n)")
file ".rubocop/minitest.yml", <%= code(".rubocop/minitest.yml") %>
extensions << ".rubocop/minitest.yml"
gems << "rubocop-minitest"
Expand Down
2 changes: 1 addition & 1 deletion template/_todo.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if yes?("Would you like to generate a TODO config?")
if yes?("Would you like to generate a TODO config? (y/n)")
# First, run RuboCop and check the output
# with formatter json
in_root do
Expand Down

0 comments on commit 15d32e9

Please sign in to comment.