openfaas / faas-cli

Official CLI for OpenFaaS
https://www.openfaas.com/
Other
794 stars 226 forks source link

[Feature] List namespaces available to openfaas #728

Closed martindekov closed 4 years ago

martindekov commented 4 years ago

Currently the OpenFaaS API provides a way to list namespaces which are available for OpenFaaS to deploy functions to, but it must be called with curl. We can add this behaviour to the cli.

Expected Behaviour

List namespaces with faas-cli list --namespaces

Current Behaviour

We must curl the endpoint in order to list the namespces

Possible Solution

Add flag to faas-cli list which will get the namespaces available to openfaas.

Steps to Reproduce (for bugs)

  1. Try getting the namespaces with faas-cli
  2. You can't

Context

I want to quickly check the available namespaces in which I can dpeloy functions and to do so I need to write curl -X GET ...., instead we can just call elegantly faas list --namespaces.

Your Environment

alexellis commented 4 years ago

Or faas namespaces?

martindekov commented 4 years ago

This is a good proposal ^ I like it 👍 I can add the option