(Chore): Uses the new autocompletion feature.
This commit is contained in:
@@ -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())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user