We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427ea50 commit 82fe069Copy full SHA for 82fe069
lib/bashly/script/introspection/commands.rb
@@ -2,6 +2,7 @@ module Bashly
2
module Script
3
module Introspection
4
module Commands
5
+ # Returns true if the command or any of its descendants has `catch_all`
6
def catch_all_used_anywhere?
7
deep_commands(include_self: true).any? { |x| x.catch_all.enabled? }
8
end
0 commit comments