Describe the issue
In various rio cli subcommand user must specify the type of resource, even though it is known because of what the command do.
For instance, rio config rm configmap/foobar requires user to type "configmap/" even though the subcommand could prefix "configmap/" by default.
Rio's goal is to make life easier, so it would be worthwhile to help the user here a little.
This problem is present in commands
rio cat - needs configmap
rio config update/rm needs configmap
rio domain unregister needs publicdomain/ prefix
rio stack info/update need stack/ prefix
Basically right now I can remove a secret using rio config rm secret/foo which seems wrong although it is not harmful.
To Reproduce
Steps to reproduce the behavior:
Create a config:
echo hello | rio config create test -
Try to remove it easily
$ rio config rm test
`FATA[0000] failed to find service test
Expected behavior
Rio CLI assumes use means configmap/test when they provide test
Kubernetes version & type (GKE, on-prem): kubectl version
Describe the issue In various rio cli subcommand user must specify the type of resource, even though it is known because of what the command do. For instance,
rio config rm configmap/foobar
requires user to type "configmap/" even though the subcommand could prefix "configmap/" by default. Rio's goal is to make life easier, so it would be worthwhile to help the user here a little.This problem is present in commands
Basically right now I can remove a secret using
rio config rm secret/foo
which seems wrong although it is not harmful.To Reproduce Steps to reproduce the behavior:
Create a config:
echo hello | rio config create test -
Try to remove it easily
Expected behavior Rio CLI assumes use means
configmap/test
when they providetest
Kubernetes version & type (GKE, on-prem):
kubectl version
Type: Rio version:
rio info