odo: `ocdev project notexistin_subcommand` should exit with error

Looks like ocdev project delete doesn’t delete the project as expected:

$ ocdev project create projtmp
New project created and now using project : projtmp

$ ocdev project get
The current project is: projtmp

$ ocdev project delete projtmp -v
DEBU[0000] getOcBinary - searching for oc binary        
DEBU[0000] envKubectlPluginCaller = 
                   
DEBU[0000] envOcBin = 
                                 
DEBU[0000] using oc from PATH                           
DEBU[0000] using oc from %s/usr/bin/oc                  
DEBU[0000] Trying to connect to server 127.0.0.1:8443 - %!v(MISSING) 
DEBU[0000] Server https://127.0.0.1:8443 is up          
DEBU[0000] isLoggedIn err:  <nil> 
 output: "developer\n" 
DEBU[0000] running oc command with arguments: /usr/bin/oc project
 
DEBU[0000] running oc command with arguments: /usr/bin/oc project -q
 
The current project is: projtmp
DEBU[0000] Could not get the latest release information in time. Never mind, exiting gracefully :) 

$ ocdev project get
The current project is: projtmp

$ ocdev project list
The current project is: projtmp

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (19 by maintainers)

Commits related to this issue

Most upvoted comments

I have reopened this as we need to make sure that any random ocdev project asdf shows error instead of showing current project.