feat: first commit
This commit is contained in:
parent
bfcc85795f
commit
d651b40df7
3 changed files with 4 additions and 5 deletions
4
app.go
4
app.go
|
@ -46,10 +46,10 @@ func daemon(n *commando.Node) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
config.DefineVersion("%s-%s (%s)", version, branch, hash)
|
config.DefineVersion(fmt.Sprintf("%s-%s (%s)", version, branch, hash))
|
||||||
|
|
||||||
cnf := config.Get()
|
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 := commando.NewCommando(os.Args[1:])
|
||||||
command.Root("daemon", "running webserver daemon", daemon, types.OptionData{
|
command.Root("daemon", "running webserver daemon", daemon, types.OptionData{
|
||||||
|
|
|
@ -35,7 +35,6 @@ func Get() *Config {
|
||||||
return &ret
|
return &ret
|
||||||
}
|
}
|
||||||
|
|
||||||
func DefineVersion(format string, args ...any) {
|
func DefineVersion(str string) {
|
||||||
var str = fmt.Sprintf(format, args)
|
|
||||||
version = &str
|
version = &str
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"version": "0.1.0"
|
"version": "0.1.0-alpha"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue