cli icon indicating copy to clipboard operation
cli copied to clipboard

CLI should be more strict with function names

Open delabassee opened this issue 5 years ago • 0 comments

fn init doesn't test if a function name has space(s) in its name or if the name starts/end with a separator(s).

Ex. the following functions will be successfully bootstrapped by init but will fail at the build stage given their names doesn't comply with Docker naming convention.

fn init --runtime go "  "
fn init --runtime go "john doe"
fn init --runtime go "...."
fn init --runtime go .separator
fn init --runtime go separator.

and with other separators : -, _,--, __

delabassee avatar Dec 19 '18 08:12 delabassee