浏览代码

add instance

fancl 1 年之前
父节点
当前提交
df640f65fa
共有 1 个文件被更改,包括 5 次插入0 次删除
  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)