Skip to content

Commit

Permalink
devonfw#758: add status commandlet (devonfw#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonrohne27 authored Nov 26, 2024
1 parent a667129 commit bc553c9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public CommandletManagerImpl(IdeContext context) {
add(new EditionSetCommandlet(context));
add(new EditionListCommandlet(context));
add(new VersionCommandlet(context));
add(new StatusCommandlet(context));
add(new RepositoryCommandlet(context));
add(new UninstallCommandlet(context));
add(new UpdateCommandlet(context));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.devonfw.tools.ide.commandlet;

import com.devonfw.tools.ide.context.IdeContext;

/**
* {@link Commandlet} to print a status report about IDEasy.
*/
public class StatusCommandlet extends Commandlet {

/**
* The constructor.
*
* @param context the {@link IdeContext}.
*/
public StatusCommandlet(IdeContext context) {

super(context);
addKeyword(getName());
}

@Override
public String getName() {

return "status";
}

@Override
public void run() {
}
}
1 change: 1 addition & 0 deletions cli/src/main/package/bin/ide
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ide_env="$("${_IDEASY}" env --bash)"
if [ $? = 0 ]; then
eval "${ide_env}"
if [ $# = 0 ]; then
ide status
echo "IDE environment variables have been set for ${IDE_HOME} in workspace ${WORKSPACE}"
fi
fi
Expand Down
2 changes: 2 additions & 0 deletions cli/src/main/resources/nls/Help.properties
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ cmd.shell.detail=The interactive shell offers console users a new user experienc
cmd.sonar=Tool commandlet for SonarQube.
cmd.sonar.detail=SonarQube is a platform for continuous inspection of code quality. Detailed documentation can be found at https://docs.sonarqube.org/
cmd.sonar.val.command=Action to perform (START|STOP|ANALYZE)
cmd.status=Prints the status report about your IDEasy.
cmd.status.detail=To check your IDE-status (e.g. duplicated or legacy variables) as well as potential information about updates to settings you should apply\nwith ide update, run the following command: 'ide status'.
cmd.terraform=Tool commandlet for Terraform.
cmd.terraform.detail=Terraform is an infrastructure as code tool for managing cloud resources. Detailed documentation can be found at https://www.terraform.io/docs/index.html
cmd.tomcat=Tool commandlet for Tomcat
Expand Down
2 changes: 2 additions & 0 deletions cli/src/main/resources/nls/Help_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ cmd.shell.detail=Die integrierte Shell bietet Konsolenbenutzer*Innen eine neue B
cmd.sonar=Werkzeug Kommando für SonarQube.
cmd.sonar.detail=SonarQube ist eine Plattform für die kontinuierliche Code-Qualitätsprüfung. Detaillierte Dokumentation ist zu finden unter https://docs.sonarqube.org/
cmd.sonar.val.command=Auszuführende Aktion (START|STOP|ANALYZE)
cmd.status=Gibt einen Statusbericht über IDEasy aus
cmd.status.detail=Um den Status Ihrer IDE zu überprüfen (z.B. doppelte oder veraltete Variablen) sowie potenzielle Informationen über Updates zu den Einstellungen,\ndie Sie mit dem Befehl 'ide update' anwenden sollten, führen Sie den folgenden Befehl aus: 'ide status'.
cmd.terraform=Werkzeug Kommando für Terraform.
cmd.terraform.detail=Terraform ist ein Tool für Infrastructure as Code zur Verwaltung von Cloud-Ressourcen. Detaillierte Dokumentation ist zu finden unter https://www.terraform.io/docs/index.html
cmd.tomcat=Werkzeug Kommando für Tomcat
Expand Down

0 comments on commit bc553c9

Please sign in to comment.