소스 검색

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)