Browse Source

add instance

fancl 1 year ago
parent
commit
df640f65fa
1 changed files with 5 additions and 0 deletions
  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)