Comments (6)
I think the cleanest solution is to support the file://
scheme or to treat scheme-less urls as local paths.
from faas-cli.
file://
is the easiest solution, but not the cleanest.
It's confusing vs. faas-cli deploy -f / --yaml local-file
, and many other tools people are used to like "kubectl" work with "kubectl apply -f https://and
kuebctl apply -f ./some-local-file.yaml`
A mix of the two might work. --url
with a local path, with or without a file://
scheme could be accepted and resolve to a local file if it looks like one.
from faas-cli.
Maybe move from --url
to a more generic --store
which supports local files or a url, like kubectl and others.
Then add a flag alias from --store
to --url
for backwards compat and then convert all docs to only reference --store
. It is also possible to make --url
hidden so that it is supported but doesn't show in the cli --help
from faas-cli.
I think that could work 👍
Are you interested in contributing it?
from faas-cli.
Lucas' approach but treading carefully with the word in the new flag.
faas-cli store deploy figlet --store ./functions.json
jars slightly because the same word is a command and a flag. Ultimately, however the file is retrieved its a file:
faas-cli store deploy figlet --file ./functions.json
and
faas-cli store deploy figlet --file https://raw.githubusercontent.com/openfaas/store/master/functions.json
Side note: From a UX / PO perspective I'd suggest that faas-cli template store
mirrors whatever behaviour is settled on here
from faas-cli.
Sure I can do this.
Good point by @rgee0, I originally thought file
or url
was a bit like showing the details of how it works, but it probably isn't an issue here. It is not likely to be the most popular flag in the CLI :) I will stick with --file
from faas-cli.
Related Issues (20)
- Have the ability to override not only the gateway URL but also the image name (repository, tag) in faas CLI commands HOT 6
- Proposal: expose docker cache-from capability HOT 4
- Add ARM64 build for MacOS HOT 1
- Capability to select container driver
- Override template Dockerfile or any file in the template. HOT 6
- feature: add watch mode to faas-cli up workflow HOT 3
- Enhancement: faas-cli local-run should run a build first HOT 6
- Question: How do I publish images when buildkit requires a self-signed certificate? HOT 6
- Question: generating image tags from Git HOT 5
- faas-cli might be incompatible for docker versions 23.0.0 and above HOT 2
- Issue with new feature faas-cli up --watch HOT 13
- After logging in to Faasd local, deploying function return error 401 HOT 6
- Make it possible for image version to have fixed length HOT 4
- I hope to have a more flexible configuration. HOT 1
- provide namespace mangement capabilities in faas-cli
- Failing test: Test_PullTemplates
- bump go-sdk version to v2.7.0
- FunctionResources print is not correctly formatted in describe command
- Namespace list command fails with 401 status code on OpenFaaS Enterprise cluster with IAM enabled.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faas-cli.