From 99562d24e98017f0159ecf920bc0e6f795cd62c8 Mon Sep 17 00:00:00 2001 From: sue445 Date: Wed, 19 Nov 2025 22:00:51 +0900 Subject: [PATCH] Tweak task desc in `go_gem/rake_task` --- _gem/lib/go_gem/rake_task.rb | 8 ++++---- _tasks/go.rake | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_gem/lib/go_gem/rake_task.rb b/_gem/lib/go_gem/rake_task.rb index c872106f..e9bc1f7a 100644 --- a/_gem/lib/go_gem/rake_task.rb +++ b/_gem/lib/go_gem/rake_task.rb @@ -134,7 +134,7 @@ def ext_dir private def define_go_test_task - desc "Run #{go_bin_path} test" + desc "Run `#{go_bin_path} test`" task(:test) do within_target_dir do sh RakeTask.build_env_vars, "#{go_bin_path} test #{go_test_args} ./..." @@ -143,7 +143,7 @@ def define_go_test_task end def define_go_testrace_task - desc "Run #{go_bin_path} test -race" + desc "Run `#{go_bin_path} test -race`" task(:testrace) do within_target_dir do sh RakeTask.build_env_vars, "#{go_bin_path} test #{go_test_args} -race ./..." @@ -152,7 +152,7 @@ def define_go_testrace_task end def define_go_fmt_task - desc "Run #{go_bin_path} fmt" + desc "Run `#{go_bin_path} fmt`" task(:fmt) do within_target_dir do sh "#{go_bin_path} fmt ./..." @@ -182,7 +182,7 @@ def define_go_build_tag_task end def define_go_mod_tidy_task - desc "Run #{go_bin_path} mod tidy" + desc "Run `#{go_bin_path} mod tidy`" task(:mod_tidy) do within_target_dir do sh "#{go_bin_path} mod tidy" diff --git a/_tasks/go.rake b/_tasks/go.rake index 5fbf583e..1ec98ce9 100644 --- a/_tasks/go.rake +++ b/_tasks/go.rake @@ -6,7 +6,7 @@ go_task = GoGem::RakeTask.new("") do |t| end namespace :go do - desc "Run golangci-lint" + desc "Run `golangci-lint`" task :lint do go_task.within_target_dir do sh "which golangci-lint" do |ok, _|