[#282] Fix lifetime examples
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
58cd276533
commit
1254f5dac0
1 changed files with 5 additions and 4 deletions
|
@ -27,8 +27,8 @@ import (
|
||||||
const (
|
const (
|
||||||
poolConnectTimeout = 5 * time.Second
|
poolConnectTimeout = 5 * time.Second
|
||||||
poolRequestTimeout = 5 * time.Second
|
poolRequestTimeout = 5 * time.Second
|
||||||
// a number of 1-hour epochs in a month.
|
// a month.
|
||||||
defaultLifetime = 720
|
defaultLifetime = 30 * 24 * time.Hour
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -199,8 +199,9 @@ func issueSecret() *cli.Command {
|
||||||
Value: false,
|
Value: false,
|
||||||
},
|
},
|
||||||
&cli.DurationFlag{
|
&cli.DurationFlag{
|
||||||
Name: "lifetime",
|
Name: "lifetime",
|
||||||
Usage: "Lifetime of tokens (e.g. 1d2h30m, it will be ceil rounded to the nearest amount of epoch)",
|
Usage: `Lifetime of tokens. For example 50h30m (note: max time unit is an hour so to set a day you should use 24h).
|
||||||
|
It will be ceil rounded to the nearest amount of epoch.`,
|
||||||
Required: false,
|
Required: false,
|
||||||
Destination: &lifetimeFlag,
|
Destination: &lifetimeFlag,
|
||||||
Value: defaultLifetime,
|
Value: defaultLifetime,
|
||||||
|
|
Loading…
Reference in a new issue