Open tuananh opened 2 years ago
Allow param validation with validargs
needs a workaround for this issue in cobra https://github.com/spf13/cobra/issues/745\
i think i need to fix more case for other type (int , list, etc...) but what do you think about this feature?
job "echo" { parameter "color" { type = string validargs = ["red", "yellow"] } exec { command = "echo" args = [param.color] } }
Signed-off-by: Tuan Anh Tran me@tuananh.org
@tuananh Looks awesome!
Allow param validation with validargs
needs a workaround for this issue in cobra https://github.com/spf13/cobra/issues/745\
i think i need to fix more case for other type (int , list, etc...) but what do you think about this feature?
Signed-off-by: Tuan Anh Tran me@tuananh.org