Skip to content

Commit

Permalink
Add description to the subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
andirady committed Aug 4, 2024
1 parent 4367d92 commit 375bcb7
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/github/andirady/pomcli/AddCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
import picocli.CommandLine.Parameters;
import picocli.CommandLine.Spec;

@Command(name = "add", sortOptions = false)
@Command(name = "add", sortOptions = false, description = "Add dependencies")
public class AddCommand implements Runnable {

private static final Logger LOG = Logger.getLogger("add");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/andirady/pomcli/GetCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import picocli.CommandLine.ParentCommand;
import picocli.CommandLine.Spec;

@Command(name = "get")
@Command(name = "get", description = "Get properties")
public class GetCommand implements Runnable {

@Option(names = { "-f", "--file" }, defaultValue = "pom.xml")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/andirady/pomcli/IdCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import picocli.CommandLine.Spec;
import picocli.CommandLine.Help.Ansi;

@Command(name = "id")
@Command(name = "id", description = "Sets the project ID")
public class IdCommand implements Callable<Integer> {

private static final Logger LOG = Logger.getLogger(IdCommand.class.getName());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/andirady/pomcli/PlugCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import picocli.CommandLine.ParentCommand;
import picocli.CommandLine.Spec;

@Command(name = "plug")
@Command(name = "plug", description = "Add a plugin")
public class PlugCommand extends ModifyingCommandBase {

@Option(names = { "-f", "--file" }, defaultValue = "pom.xml")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import picocli.CommandLine.Help.Ansi;
import picocli.CommandLine.Model.CommandSpec;

@Command(name = "search")
@Command(name = "search", description = "Search for artifacts")
public class SearchCommand implements Runnable {

@ArgGroup(exclusive = true, multiplicity = "1")
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/andirady/pomcli/SetCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;

@Command(name = "set")
@Command(name = "set", description = "Set properties")
public class SetCommand implements Runnable {

record Property(String key, String value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import picocli.CommandLine.Spec;
import picocli.CommandLine.Model.CommandSpec;

@Command(name = "parent")
@Command(name = "parent", description = "Sets the parent for the project")
public class SetParentCommand extends ModifyingCommandBase {

@Option(names = { "-f", "--file" }, defaultValue = "pom.xml")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static org.junit.jupiter.api.Assertions.assertSame;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

import org.junit.jupiter.api.AfterEach;
Expand Down

0 comments on commit 375bcb7

Please sign in to comment.