(Chore): Uses the new autocompletion feature.

This commit is contained in:
2025-11-21 08:37:24 +00:00
parent ec36ec0661
commit f25b4c0a59

View File

@@ -17,7 +17,7 @@ func RunAnalyzeFlow() error {
huh.NewGroup( huh.NewGroup(
huh.NewInput(). huh.NewInput().
Title("📦 Archive Path"). Title("📦 Archive Path").
Description("Path to the archive to analyze"). Description("Path to the archive to analyze - Tab for completions").
Placeholder("/path/to/archive.zip"). Placeholder("/path/to/archive.zip").
Value(&archivePath). Value(&archivePath).
Validate(func(s string) error { Validate(func(s string) error {
@@ -28,7 +28,8 @@ func RunAnalyzeFlow() error {
return fmt.Errorf("archive does not exist") return fmt.Errorf("archive does not exist")
} }
return nil return nil
}), }).
Suggestions(getArchiveCompletions("")),
), ),
).WithTheme(huh.ThemeCatppuccin()) ).WithTheme(huh.ThemeCatppuccin())