add instance
This commit is contained in:
parent
eb4c287da0
commit
df640f65fa
|
@ -60,6 +60,11 @@ func Command() *cli.Server {
|
||||||
return std.Command()
|
return std.Command()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ShortName() string {
|
||||||
|
initApplication()
|
||||||
|
return std.opts.ShortName()
|
||||||
|
}
|
||||||
|
|
||||||
func Handle(method string, cb HandleFunc) {
|
func Handle(method string, cb HandleFunc) {
|
||||||
initApplication()
|
initApplication()
|
||||||
std.Handle(method, cb)
|
std.Handle(method, cb)
|
||||||
|
|
Loading…
Reference in New Issue