Open ilovelinux opened 1 year ago
I put this PR in WIP as I wanted to test its behavior with jovo build:serverless --deploy
command, but I can't manage to make it run. I get the same error with the published package, I think it's unrelated to the PR.
Proposed changes
Since arguments passed to
jovo deploy:code serverless {args}
are used only on an index-based logic (see code referenced in the issue), they need to be put afterserverless
.The additional code checks the order of the arguments before running the deployment. When they are not in the right order, it raises an exception with an explicit and meaningful message about how to use the command in the right way.
Fixes https://github.com/jovotech/jovo-cli/issues/358
Note: there may be better error messages than the one I chose. Feel free to change it accordingly.
Types of changes
Checklist