From 7daefe9ab6e6f267c2cbaae869ae686f1e6c3f67 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 20 Mar 2026 21:03:26 +0000 Subject: [PATCH] Add exit_on_failure? to suppress Thor deprecation warning Thor >= 0.20 warns when exit_on_failure? is not defined, because a future version will default to exit-on-failure rather than exit 0. The CLI already calls exit(1) explicitly in all error paths, so returning true here matches the existing behaviour and silences the warning. https://claude.ai/code/session_01YCwmQwLcoLBGjQ8yXWQ7pd --- lib/homesick/cli.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/homesick/cli.rb b/lib/homesick/cli.rb index 82ea84c..89eaaf2 100644 --- a/lib/homesick/cli.rb +++ b/lib/homesick/cli.rb @@ -14,6 +14,10 @@ class CLI < Thor add_runtime_options! + def self.exit_on_failure? + true + end + map '-v' => :version map '--version' => :version # Retain a mapped version of the symlink command for compatibility.