Files
cdp_hub/internal/platform/files/directory_picker.go
T

17 lines
562 B
Go

package files
import "context"
// DirectoryPicker opens a platform directory chooser. The implementation must
// block only in its own goroutine; UI callers receive the result asynchronously.
type DirectoryPicker interface {
ChooseDirectory(context.Context) (string, error)
}
// ExecutablePicker opens a platform file chooser for an existing browser
// executable. The implementation must block only in its own goroutine; UI
// callers receive the result asynchronously.
type ExecutablePicker interface {
ChooseExecutable(context.Context) (string, error)
}