mirror of
https://github.com/1f349/orchid.git
synced 2024-12-22 08:04:10 +00:00
21 lines
426 B
Go
21 lines
426 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"flag"
|
|
"github.com/google/subcommands"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
subcommands.Register(subcommands.HelpCommand(), "")
|
|
subcommands.Register(subcommands.FlagsCommand(), "")
|
|
subcommands.Register(subcommands.CommandsCommand(), "")
|
|
subcommands.Register(&serveCmd{}, "")
|
|
subcommands.Register(&setupCmd{}, "")
|
|
|
|
flag.Parse()
|
|
ctx := context.Background()
|
|
os.Exit(int(subcommands.Execute(ctx)))
|
|
}
|