-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify a local file on disk for the function store #984
Comments
I think the cleanest solution is to support the |
It's confusing vs. A mix of the two might work. |
Maybe move from Then add a flag alias from |
I think that could work 👍 Are you interested in contributing it? |
Lucas' approach but treading carefully with the word in the new flag.
jars slightly because the same word is a command and a flag. Ultimately, however the file is retrieved its a file:
and
Side note: From a UX / PO perspective I'd suggest that |
Sure I can do this. Good point by @rgee0, I originally thought |
Expected Behaviour
I'd like to be able to specify a local file on disk for the function store to test out definitions before publishing them on GitHub.
Current Behaviour
I can test any HTTP url via
--url
, but not a local file via a flag.Why do you need this?
Better testing experience and contributing experience.
Which Solution Do You Recommend?
A new flag perhaps, or a url like
file://
. I think a flag fits better with the intuitive developer experience of a UNIX CLI.Steps to Reproduce (for bugs)
git clone https://github.com/openfaas/store-functions && cd store-functions
faas-cli store deploy --file ./functions.json
The text was updated successfully, but these errors were encountered: