Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Dec 20, 2024
1 parent 427ea50 commit 82fe069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bashly/script/introspection/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ module Bashly
module Script
module Introspection
module Commands
# Returns true if the command or any of its descendants has `catch_all`
def catch_all_used_anywhere?
deep_commands(include_self: true).any? { |x| x.catch_all.enabled? }
end
Expand Down

0 comments on commit 82fe069

Please sign in to comment.