picker

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package picker discovers SQL files and selects one interactively when possible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pick

func Pick(options []string) (string, error)

Pick returns a selected option using fzf when available. If fzf is missing or no selection is made, the first sorted option is used as a deterministic fallback.

func SQLFiles

func SQLFiles(root string) ([]string, error)

SQLFiles returns all .sql files under root, skipping hidden directories and sorting the result for deterministic fallback selection.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL