Sdkman-cli: How to disable interactive mode?

Created on 4 Jan 2017  路  7Comments  路  Source: sdkman/sdkman-cli

Newly using sdk o will go in interactive mode, asking the user to update or not.

Is it possible to disable this new behavior since it breaks all our scripts :( and is also quite annoying ?

Thank you.

Trello enhancement

Most helpful comment

I think we should make the default (N) to be honest. Then auto answer would work as you'd expect and guarantee backwards compatibility.

I'll also update the read me as you suggest.

All 7 comments

Unfortunately, the outdated command has been deprecated in favour of upgrade. Although the sdkman_auto_answer=true configuration works here, it will always choose the default (which is Y).

In future, please ask usage question on Gitter before opening an issue.

Unfortunately, the outdated command has been deprecated in favour of upgrade

That's a pitty since the outdated command was working just fine :( .

In future, please ask usage question on Gitter before opening an issue.

Please mention that Gitter is the default "discussion" place on the main GitHub page too, e.g. like https://github.com/gitbucket/gitbucket/#support does.

I think we should make the default (N) to be honest. Then auto answer would work as you'd expect and guarantee backwards compatibility.

I'll also update the read me as you suggest.

Then auto answer would work as you'd expect and guarantee backwards compatibility.

This sounds great, thank you very much :)

Any update on this? There should be a way to avoid the interactive mode and answer N.

@galderz Pull request welcome! Why don't you give it a crack?

Never mind, found an obvious workaround:

n | sdk install java ${JAVA} || true

The n | deals with the question and || true makes sure it doesn't fail if already installed. Both could be improved for sure, but not a showstopper.

Was this page helpful?
0 / 5 - 0 ratings