Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Show warning for unused properties #525

Merged
merged 8 commits into from
Feb 25, 2020
Merged

feat: Show warning for unused properties #525

merged 8 commits into from
Feb 25, 2020

Conversation

tolusha
Copy link
Collaborator

@tolusha tolusha commented Feb 20, 2020

Signed-off-by: Anatoliy Bazko [email protected]

What does this PR do?

Show warning for unused properties

$ ./run server:start --platform=minikube  --installer=operator --che-operator-cr-yaml=cr.yaml --cheimage=test --debug
  ✔ Verify Kubernetes API...OK
  ✔ 👀  Looking for an already existing Eclipse Che instance
    ✔ Verify if Eclipse Che is deployed into namespace "che"...it is not
 ›   Warning: --che-operator-cr-yaml is used. The following flag(s) will be ignored: --cheimage	--debug

What issues does this PR fix or reference?

eclipse-che/che#15072

Signed-off-by: Anatoliy Bazko <[email protected]>
msg += flags['self-signed-cert'] ? '\t--self-signed-cert' : ''
msg += flags['os-oauth'] ? '\t--os-oauth' : ''
msg += flags.tls ? '\t--ls' : ''
msg += flags.cheimage ? '\t--cheimage' : ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_20200224_092914

It's not critical but cheimage is printed even when user does not specify it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_20200224_093135

@@ -186,6 +186,23 @@ export default class Start extends Command {

checkPlatformCompatibility(flags: any) {
// matrix checks
if (flags.installer === 'operator' && flags['che-operator-cr-yaml']) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it actual also when user use --che-operator-cr-patch-yaml?

Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
Signed-off-by: Anatoliy Bazko <[email protected]>
@tolusha tolusha changed the title Show warning for unused properties feat: Show warning for unused properties Feb 25, 2020
@tolusha tolusha merged commit 9fa9cb6 into master Feb 25, 2020
@tolusha tolusha deleted the ab/warn branch February 25, 2020 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants