fix: use tab-completion file selector for analyze hashcat rules

The analyze_rules() function used plain input() instead of
select_file_with_autocomplete(), making it the only file-input
prompt without tab-completion support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin Bollinger
2026-02-18 22:48:11 -05:00
co-authored by Claude Opus 4.6
parent 14f5b36382
commit 302b99716f
+2 -5
View File
@@ -3502,16 +3502,13 @@ def analyze_rules():
print("Rule Opcode Analyzer")
print("=" * 60)
# Get rule file path from user
rule_file = input("\nEnter path to rule file: ").strip()
# Get rule file path from user with tab completion
rule_file = select_file_with_autocomplete("Enter path to rule file")
if not rule_file:
print("No rule file specified.")
return
# Expand user path
rule_file = os.path.expanduser(rule_file)
if not os.path.isfile(rule_file):
print(f"Error: Rule file not found: {rule_file}")
return