The command line tool needs to have a way to access the apihost, ports etc.
to avoid having to pass at each request the entire url.
For example to invoke a function right now the command is fl fn invoke function,
but the host that the client uses is hardcoded to http://localhost:8080 to build the
entire address as http://localhost:8080/namespace/fn/function.
One way to solve this problem is through a config file (openwhisk uses .wskprops),
it could be located at .fn, .fl, .fun, or .funless and be called config (k8s uses .kube/config)
It should at least hold the host and the port to the deployed system to connect to,
and the cli should read the config file to retrieve it
The command line tool needs to have a way to access the apihost, ports etc.
to avoid having to pass at each request the entire url.
For example to invoke a function right now the command is
fl fn invoke function,but the host that the client uses is hardcoded to
http://localhost:8080to build theentire address as
http://localhost:8080/namespace/fn/function.One way to solve this problem is through a config file (openwhisk uses .wskprops),
it could be located at .fn, .fl, .fun, or .funless and be called config (k8s uses .kube/config)
It should at least hold the host and the port to the deployed system to connect to,
and the cli should read the config file to retrieve it