mirror of
https://github.com/hanzoai/git-runner.git
synced 2026-11-14 02:38:33 +00:00
Based on upstream v0.6.1 (0894892). External Go module deps unchanged.
Co-authored-by: Hanzo Dev <[email protected]>
20 lines
361 B
Go
20 lines
361 B
Go
// Copyright 2022 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"github.com/hanzoai/git-runner/internal/app/cmd"
|
|
)
|
|
|
|
func main() {
|
|
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
|
|
defer stop()
|
|
// run the command
|
|
cmd.Execute(ctx)
|
|
}
|