feat: first commit

This commit is contained in:
WH64 2025-04-24 22:16:46 +09:00
parent bfcc85795f
commit d651b40df7
3 changed files with 4 additions and 5 deletions

4
app.go
View file

@ -46,10 +46,10 @@ func daemon(n *commando.Node) error {
}
func main() {
config.DefineVersion("%s-%s (%s)", version, branch, hash)
config.DefineVersion(fmt.Sprintf("%s-%s (%s)", version, branch, hash))
cnf := config.Get()
fmt.Printf("Static Deployer %s\n", cnf.Version)
fmt.Printf("Static Deployer v%s\n", cnf.Version)
command := commando.NewCommando(os.Args[1:])
command.Root("daemon", "running webserver daemon", daemon, types.OptionData{

View file

@ -35,7 +35,6 @@ func Get() *Config {
return &ret
}
func DefineVersion(format string, args ...any) {
var str = fmt.Sprintf(format, args)
func DefineVersion(str string) {
version = &str
}

View file

@ -1,3 +1,3 @@
{
"version": "0.1.0"
"version": "0.1.0-alpha"
}