feat: gitea client
This commit is contained in:
16
vendor/github.com/alecthomas/kong/global.go
generated
vendored
Normal file
16
vendor/github.com/alecthomas/kong/global.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package kong
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// Parse constructs a new parser and parses the default command-line.
|
||||
func Parse(cli any, options ...Option) *Context {
|
||||
parser, err := New(cli, options...)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
ctx, err := parser.Parse(os.Args[1:])
|
||||
parser.FatalIfErrorf(err)
|
||||
return ctx
|
||||
}
|
||||
Reference in New Issue
Block a user