Skip to content

Commit bc553c9

Browse files
authored
#758: add status commandlet (#770)
1 parent a667129 commit bc553c9

File tree

5 files changed

+36
-0
lines changed

5 files changed

+36
-0
lines changed

Diff for: cli/src/main/java/com/devonfw/tools/ide/commandlet/CommandletManagerImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public CommandletManagerImpl(IdeContext context) {
7676
add(new EditionSetCommandlet(context));
7777
add(new EditionListCommandlet(context));
7878
add(new VersionCommandlet(context));
79+
add(new StatusCommandlet(context));
7980
add(new RepositoryCommandlet(context));
8081
add(new UninstallCommandlet(context));
8182
add(new UpdateCommandlet(context));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package com.devonfw.tools.ide.commandlet;
2+
3+
import com.devonfw.tools.ide.context.IdeContext;
4+
5+
/**
6+
* {@link Commandlet} to print a status report about IDEasy.
7+
*/
8+
public class StatusCommandlet extends Commandlet {
9+
10+
/**
11+
* The constructor.
12+
*
13+
* @param context the {@link IdeContext}.
14+
*/
15+
public StatusCommandlet(IdeContext context) {
16+
17+
super(context);
18+
addKeyword(getName());
19+
}
20+
21+
@Override
22+
public String getName() {
23+
24+
return "status";
25+
}
26+
27+
@Override
28+
public void run() {
29+
}
30+
}

Diff for: cli/src/main/package/bin/ide

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ ide_env="$("${_IDEASY}" env --bash)"
1515
if [ $? = 0 ]; then
1616
eval "${ide_env}"
1717
if [ $# = 0 ]; then
18+
ide status
1819
echo "IDE environment variables have been set for ${IDE_HOME} in workspace ${WORKSPACE}"
1920
fi
2021
fi

Diff for: cli/src/main/resources/nls/Help.properties

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ cmd.shell.detail=The interactive shell offers console users a new user experienc
9797
cmd.sonar=Tool commandlet for SonarQube.
9898
cmd.sonar.detail=SonarQube is a platform for continuous inspection of code quality. Detailed documentation can be found at https://docs.sonarqube.org/
9999
cmd.sonar.val.command=Action to perform (START|STOP|ANALYZE)
100+
cmd.status=Prints the status report about your IDEasy.
101+
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'.
100102
cmd.terraform=Tool commandlet for Terraform.
101103
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
102104
cmd.tomcat=Tool commandlet for Tomcat

Diff for: cli/src/main/resources/nls/Help_de.properties

+2
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ cmd.shell.detail=Die integrierte Shell bietet Konsolenbenutzer*Innen eine neue B
9797
cmd.sonar=Werkzeug Kommando für SonarQube.
9898
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/
9999
cmd.sonar.val.command=Auszuführende Aktion (START|STOP|ANALYZE)
100+
cmd.status=Gibt einen Statusbericht über IDEasy aus
101+
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'.
100102
cmd.terraform=Werkzeug Kommando für Terraform.
101103
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
102104
cmd.tomcat=Werkzeug Kommando für Tomcat

0 commit comments

Comments
 (0)