stub cli
cicd / ci (push) Successful in 1m1s Details

main
Bel LaPointe 2024-12-12 11:37:16 -07:00
parent 23bd6e29c9
commit e4d60a9e73
2 changed files with 17 additions and 0 deletions

13
cmd/cli/main.go Normal file
View File

@ -0,0 +1,13 @@
package cli
import (
"flag"
"os"
)
func Main() {
fs := flag.NewFlagSet(os.Args[0], flag.ContinueOnError)
if err := fs.Parse(os.Args[1:]); err != nil {
panic(err)
}
}

View File

@ -3,6 +3,7 @@ package main
import (
"os"
"gogs.inhome.blapointe.com/ana-ledger/cmd/cli"
"gogs.inhome.blapointe.com/ana-ledger/cmd/http"
)
@ -11,5 +12,8 @@ func main() {
case "http":
os.Args = append([]string{os.Args[0]}, os.Args[2:]...)
http.Main()
case "cli":
os.Args = append([]string{os.Args[0]}, os.Args[2:]...)
cli.Main()
}
}