28 lines
487 B
Go
28 lines
487 B
Go
|
package main
|
||
|
|
||
|
/*
|
||
|
func main() {
|
||
|
db := database.GetDatabaseFromConfig("config.json")
|
||
|
cardSearchOptions, err := operations.GetCardSearchOptions(db)
|
||
|
check(err)
|
||
|
|
||
|
cmd := exec.Command("fzf")
|
||
|
cmd.Stderr = os.Stderr
|
||
|
|
||
|
fzfStdin, err := cmd.StdinPipe()
|
||
|
check(err)
|
||
|
|
||
|
go func() {
|
||
|
defer fzfStdin.Close()
|
||
|
for _, option := range cardSearchOptions {
|
||
|
io.WriteString(fzfStdin, option+"\n")
|
||
|
}
|
||
|
}()
|
||
|
|
||
|
fzfOutput, err := cmd.Output()
|
||
|
check(err)
|
||
|
|
||
|
fmt.Println("Output:", string(fzfOutput))
|
||
|
}
|
||
|
*/
|