Browse Source

add instance

fancl 1 năm trước cách đây
mục cha
commit
df640f65fa
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      instance.go

+ 5 - 0
instance.go

@@ -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)