Skip to content

murfffi/getaduck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getaduck

getaduck - Get-a-Duck - is a CLI tool and Go library that downloads DuckDB releases. As a CLI tool, getaduck is useful in scripts that automate provisioning DuckDB. As a Go library, it helps Go app access DuckDB libraries without having to bundle a specific version.

Usage as CLI

If Go 1.21+ is available, run:

go run github.com/murfffi/getaduck@latest -type cli
./duckdb --version

Use -help to see additional options

Usage as a library

package main

import (
	"fmt"

	"github.com/murfffi/getaduck/download"
)

func main() {
	// Download the latest DuckDB release for your platform
	res, err := download.Do(download.DefaultSpec())
	if err != nil {
		panic(err)
	}
	fmt.Println("Downloaded DuckDB to:", res.OutputFile)
}

Contributing

Contributions are welcome! Please fork the repository and open a pull request with your proposed changes. Make sure your code follows Go best practices. Bug reports and feature requests are also appreciated.

About

Download DuckDB releases

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors