getaduck

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package download implements downloading DuckDB releases as a library
Package download implements downloading DuckDB releases as a library
internal
Package shell implements the getaduck CLI in a way which is embeddable in other programs
Package shell implements the getaduck CLI in a way which is embeddable in other programs

Jump to

Keyboard shortcuts

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