Added sub commands for doing admin stuff
This commit is contained in:
parent
329de2f953
commit
4a6b79db17
18 changed files with 531 additions and 185 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue