Added sub commands for doing admin stuff

This commit is contained in:
Leon Mika 2026-02-28 10:39:08 +11:00
parent 329de2f953
commit 4a6b79db17
18 changed files with 531 additions and 185 deletions

View file

@ -2,6 +2,7 @@ package config
import (
"fmt"
"path/filepath"
"github.com/Netflix/go-env"
)
@ -24,3 +25,7 @@ func LoadConfig() (Config, error) {
func (c Config) IsProd() bool {
return c.Env != "dev"
}
func (c Config) DBName() string {
return filepath.Join(c.DataDir, "weiro.db")
}