teldrive/main.go
2024-08-31 15:50:17 +00:00

18 lines
269 B
Go

package main
import (
"context"
"os"
"os/signal"
"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)
}
}