add instance

This commit is contained in:
fancl 2023-10-23 15:47:37 +08:00
parent eb4c287da0
commit df640f65fa
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ func Command() *cli.Server {
return std.Command()
}
func ShortName() string {
initApplication()
return std.opts.ShortName()
}
func Handle(method string, cb HandleFunc) {
initApplication()
std.Handle(method, cb)