in commands/FBFindCommands.py [0:0]
def run(self, arguments, options):
if options.classNameRegex and options.view:
print("Do not set both the --name and --view flags")
elif options.view:
self.findOwningViewController(options.view)
else:
output = vcHelpers.viewControllerRecursiveDescription(
"(id)[[[UIApplication sharedApplication] keyWindow] rootViewController]"
)
searchString = (
options.classNameRegex if options.classNameRegex else arguments[0]
)
printMatchesInViewOutputStringAndCopyFirstToClipboard(searchString, output)