-
Notifications
You must be signed in to change notification settings - Fork 139
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
We should decided whether functions cli should be a kn plugin - kn func
or a standalone cli - func
#1480
Comments
kn func
or a standalone cli - func
kn func
or a standalone cli - func
IMHO, second option, because having to deal with yet another CLI is not a good UX, in particular all the "next steps if we choose this approach" sound very good ways to improve the UX overall. Just for reference, I will link this comment knative/operator#914 (comment), which could be another data point to make a decision; the second option is not completely solving that problem but I guess having both available together is a more compelling reason to adopt both. |
Why not keep both options !? Adding func as a kn plugin will help with the problem of not dealing with 2 different CLIs while on the other hand from the developers side, func should be enough for them if functions is all what they want to develop. |
We can have the "pro"s of both by continuing with our current path of allowing As To ease confusion, I would love for there to be a simple way to install func as a kn plugin by default. Could an installer look for this situation and symlink |
This issue is stale because it has been open for 90 days with no |
Not sure if this discussion has just been abandoned or has been resolved (if so, I don't see the solution though), but IMO its much more than just about the technique how to invoke func (whether standlone or via kn) but much more about semantics and/or user experience. If used as a plugin ...
I don't mind much if we have the same functionality to be called on different levels (even if this agains the mentioned Unix philosophy and more like Perl's TMTOWTDI (There are many ways to do it)), but we should avoid to have different semantics at all cost (e.g. how to specify brokers or sinks in options. |
At the moment
func
could be a standalone CLI or a kn plugin, in the long term we should decide on which approach we would like to promote. The current situation is confusing.I will try to summarize pros and cons for both approaches
Standalone
func
Pros
kn
andfunc
are conceptually different,kn
mainly operates resources on a cluster (think ofkubectl
), but the UX offunc
is mainly built around local source code and manifests (there are a few exceptions though,func list
,...)func
thankn func
kn
is relatively stable butfunc
is not - each CLI can maintain it's release cadenceCons
func
andkn
(parameters, output, formating,...)kn
andfunc
might have similar commands for the same funcitonality (kn event
vsfunc invoke
,...)kn
andfunc
or instruct users to use each CLI for a different task?What are the next steps if we choose this approach?
Plugin -
kn func
Pros
kn
is the ultimate tool, user don't have to switch contexts and commong things (events binding, orchestration) is done from a single CLICons
kn func
is not so fast as justfunc
kn
and fun`, there is a different need for release cadenceWhat are the next steps if we choose this approach?
kn
should already containfunc
plugin by defaultThe text was updated successfully, but these errors were encountered: