odo icon indicating copy to clipboard operation
odo copied to clipboard

Running `odo init` non-interactively says "Interactive mode enabled"

Open rm3l opened this issue 3 years ago • 0 comments

/kind bug

What versions of software are you using?

Operating System: Fedora 36

Output of odo version: odo v3.0.0-beta2 (e46786e8e)

How did you run odo exactly?

Just bootstrapping a new project non-interactively:

odo init --name my-sample-go --devfile go --starter go-starter 

Actual behavior

The command says "Interactive mode enabled, please answer the following questions:", as if it were running interactively, which is not the case here.

❯ odo init --name my-sample-go --devfile go --starter go-starter                                                                                                                                                                              
  __
 /  \__     Initializing new component
 \__/  \    
 /  \__/    odo version: v3.0.0-beta2
 \__/

Interactive mode enabled, please answer the following questions:
 ✓  Downloading devfile "go" [2s]
 ✓  Downloading starter project "go-starter" [669ms]

Your new component 'my-sample-go' is ready in the current directory.
To start editing your component, use 'odo dev' and open this folder in your favorite IDE.
Changes will be directly reflected on the cluster.

Expected behavior

In non-interactive mode, no question is asked, so odo init should not display this "Interactive mode enabled, please answer the following questions:" message; or it should display a different message.

rm3l avatar Jul 20 '22 15:07 rm3l