Rename to uncensored-send

This commit is contained in:
2026-09-13 08:57:01 +02:00
parent eaa0a5d1d7
commit 7d0d303c2a
21 changed files with 61 additions and 61 deletions
+12 -12
View File
@@ -1,4 +1,4 @@
// Command send is a small self-hosted file drop: uploads land in a flat data
// Command uncensored-send is a small self-hosted file drop: uploads land in a flat data
// directory, expire on their own, and are served back as inert attachments.
package main
@@ -15,10 +15,10 @@ import (
"syscall"
"time"
"send/internal/auth"
"send/internal/config"
"send/internal/server"
"send/internal/store"
"uncensored-send/internal/auth"
"uncensored-send/internal/config"
"uncensored-send/internal/server"
"uncensored-send/internal/store"
)
func main() {
@@ -26,7 +26,7 @@ func main() {
if errors.Is(err, flag.ErrHelp) {
os.Exit(0)
}
fmt.Fprintln(os.Stderr, "send: "+err.Error())
fmt.Fprintln(os.Stderr, "uncensored-send: "+err.Error())
os.Exit(1)
}
}
@@ -38,13 +38,13 @@ func run(args []string) error {
return serve(args)
}
const serveUsage = `send - a small self-hosted file drop
const serveUsage = `uncensored-send - a small self-hosted file drop
Usage:
send [options] run the server
send token add <name> [opts] mint a token, printing it once
send token list list tokens
send token rm <name> remove a token
uncensored-send [options] run the server
uncensored-send token add <name> [opts] mint a token, printing it once
uncensored-send token list list tokens
uncensored-send token rm <name> remove a token
Options take one hyphen with a single letter (-s) and two with a full
word (--max-size). Every option can also be set from the environment.
@@ -54,7 +54,7 @@ Options:
func serve(args []string) error {
var cfg config.Config
fs := config.NewSet("send", config.EnvPrefix)
fs := config.NewSet("uncensored-send", config.EnvPrefix)
fs.SetOutput(os.Stderr)
cfg.Register(fs)