feat: move remaining go scripts to main executable

This commit is contained in:
Sam 2023-05-11 01:13:32 +02:00
parent 4e056632c8
commit 7c7f948ad6
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
3 changed files with 59 additions and 5 deletions

11
main.go
View file

@ -8,6 +8,8 @@ import (
"codeberg.org/u1f320/pronouns.cc/backend/exporter"
"codeberg.org/u1f320/pronouns.cc/backend/server"
"codeberg.org/u1f320/pronouns.cc/scripts/cleandb"
"codeberg.org/u1f320/pronouns.cc/scripts/genid"
"codeberg.org/u1f320/pronouns.cc/scripts/genkey"
"codeberg.org/u1f320/pronouns.cc/scripts/migrate"
"codeberg.org/u1f320/pronouns.cc/scripts/seeddb"
"github.com/urfave/cli/v2"
@ -30,6 +32,15 @@ var app = &cli.App{
cleandb.Command,
},
},
{
Name: "generate",
Aliases: []string{"gen"},
Usage: "Generate various strings",
Subcommands: []*cli.Command{
genid.Command,
genkey.Command,
},
},
},
}