Skip to content

Commit c51f3cf

Browse files
committed
Cleanup
Signed-off-by: Piotr Olaszewski <piotr.olaszewski@thulium.pl>
1 parent 69bbcef commit c51f3cf

File tree

11 files changed

+11
-730
lines changed

11 files changed

+11
-730
lines changed

spring-shell-core/src/main/java/org/springframework/shell/core/command/Command.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,14 @@ default List<String> getAliases() {
7373
*/
7474
ExitStatus execute(CommandContext commandContext) throws Exception;
7575

76+
interface Builder {
77+
Builder name(String name);
78+
Builder description(String description);
79+
Builder help(String help);
80+
Builder group(String group);
81+
Builder options(List<CommandOption> options);
82+
Builder aliases(List<CommandAlias> aliases);
83+
Builder action(Command action);
84+
Command build();
85+
}
7686
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.springframework.shell.core.command.metadata;
16+
package org.springframework.shell.core.command;
1717

1818
import org.jspecify.annotations.Nullable;
1919

0 commit comments

Comments
 (0)