cli icon indicating copy to clipboard operation
cli copied to clipboard

Provide correct info for function 'timeouts'

Open abhirockzz opened this issue 7 years ago • 1 comments
trafficstars

CLI response for fn create fn --help and fn update fn --help returns incorrect info for timeout and idle_timeout e.g. AFAIK, the default idle_timeout is 30 seconds

--timeout value           Function timeout (eg. 30) (default: 0)
--idle-timeout value      Function idle timeout (eg. 30) (default: 0)

Please provide info about the maximum and minimum limits as well

abhirockzz avatar Oct 31 '18 08:10 abhirockzz

Problem: https://github.com/fnproject/cli/blob/master/commands/init.go#L109. cli.IntFlag is problematic for us because we don't want to have a copy of Fn constraints in CLI, so, I'd prefer to use cli.StringFlag with some string-to-int conversion.

denismakogon avatar Oct 31 '18 11:10 denismakogon