Refactor function command (#1372)
This commit is contained in:
@@ -18,6 +18,7 @@ package urfavecli
|
||||
|
||||
import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/urfave/cli"
|
||||
|
||||
@@ -107,3 +108,7 @@ func (u Cli) GlobalInt64(key string) int64 {
|
||||
func (u Cli) GlobalInt64Slice(key string) []int64 {
|
||||
return u.c.GlobalInt64Slice(key)
|
||||
}
|
||||
|
||||
func (u Cli) Duration(key string) time.Duration {
|
||||
return u.c.Duration(key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user