Find a file
Leon Mika fe5d00730b
Some checks failed
Build and Release / release (push) Failing after 27s
Updated Goreleaser to v2
2025-06-01 10:09:37 +10:00
.forgejo/workflows Added goreleaser and release workflow 2025-06-01 09:44:16 +10:00
.idea Fixed usage and progress display 2025-01-04 14:21:10 +11:00
.goreleaser.yaml Updated Goreleaser to v2 2025-06-01 10:09:37 +10:00
chunker.go Fixed usage and progress display 2025-01-04 14:21:10 +11:00
client.go Initial commit 2025-01-03 15:16:27 +11:00
config.go Fixed usage and progress display 2025-01-04 14:21:10 +11:00
display.go Fixed usage and progress display 2025-01-04 14:21:10 +11:00
go.mod Initial commit 2025-01-03 15:16:27 +11:00
go.sum Initial commit 2025-01-03 15:16:27 +11:00
LICENSE.txt Added license and readme 2025-01-04 14:33:44 +11:00
main.go Fixed usage and progress display 2025-01-04 14:21:10 +11:00
models.go Initial commit 2025-01-03 15:16:27 +11:00
README.md Specified Go version 2025-01-04 14:36:37 +11:00

send2gokapi

Small CLI tool to upload files to a Gokapi instance.

Usage

In order to use this tool, the following environment variables must be set:

  • SEND2GOKAPI_URL: Base URL of a Gokapi instance. For example: https://your.gokapi.url/.
  • SEND2GOKAPI_API_KEY: API Key
send2gokapi [OPTIONS] FILES

Valid options:

  • -d: Max number of downloads allowed for each uploaded file (0 = unlimited). Default is 5
  • -t: Number of days to keep files (0 = unlimited). Default is 7.

Installation

If you have Go 1.23:

go install lmika.dev/cmd/send2gokapi@latest