teldrive/main.go

19 lines
269 B
Go
Raw Permalink Normal View History

package main
import (
"context"
"os"
"os/signal"
2024-08-31 23:50:17 +08:00
"github.com/tgdrive/teldrive/cmd"
)
func main() {
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
defer cancel()
if err := cmd.New().ExecuteContext(ctx); err != nil {
panic(err)
}
}