You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
Right now we have validation code and the generator code mixed which is not the good thing I think so think about decoupling it for our own ease of maintaining the project for the long term.
Similar to what we did in OpenCompose we can do it here as well.
So what I think is that we create a validation function for what we have read in after app, err := encoding.Decode(data) in pkg/cmd/convert.go. This will pull all the validation code like the case we are checking if multiple containers are given then is the name field is provided by the user. And more like those.
The text was updated successfully, but these errors were encountered:
Right now we have validation code and the generator code mixed which is not the good thing I think so think about decoupling it for our own ease of maintaining the project for the long term.
Similar to what we did in OpenCompose we can do it here as well.
So what I think is that we create a validation function for what we have read in after
app, err := encoding.Decode(data)
inpkg/cmd/convert.go
. This will pull all the validation code like the case we are checking if multiple containers are given then is thename
field is provided by the user. And more like those.The text was updated successfully, but these errors were encountered: