mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 17:14:03 +08:00
19 lines
271 B
Go
19 lines
271 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"os"
|
||
|
"os/signal"
|
||
|
|
||
|
"github.com/divyam234/teldrive/cmd"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||
|
defer cancel()
|
||
|
|
||
|
if err := cmd.New().ExecuteContext(ctx); err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
}
|