From b5bacbf9cf72a15d3de08e1cc94ac0cb47df7370 Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Thu, 11 May 2023 08:28:09 -0400 Subject: [PATCH] Update core submodule. --- core | 2 +- .../java/rife/bld/help/PublishLocalHelp.java | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/main/java/rife/bld/help/PublishLocalHelp.java diff --git a/core b/core index 850dbb2..a59f1cc 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 850dbb2eb87ae2747a00526dbf9f14cea3847c5d +Subproject commit a59f1ccb6430b81b8c2eb1016069ab3e3a50fac8 diff --git a/src/main/java/rife/bld/help/PublishLocalHelp.java b/src/main/java/rife/bld/help/PublishLocalHelp.java new file mode 100644 index 0000000..189c01c --- /dev/null +++ b/src/main/java/rife/bld/help/PublishLocalHelp.java @@ -0,0 +1,30 @@ +/* + * Copyright 2001-2023 Geert Bevin (gbevin[remove] at uwyn dot com) + * Licensed under the Apache License, Version 2.0 (the "License") + */ +package rife.bld.help; + +import rife.bld.CommandHelp; +import rife.tools.StringUtils; + +/** + * Provides help for the publish command. + * + * @author Geert Bevin (gbevin[remove] at uwyn dot com) + * @since 1.5.7 + */ +public class PublishHelp implements CommandHelp { + public String getSummary() { + return "Publishes the artifacts of your project"; + } + + public String getDescription(String topic) { + return StringUtils.replace(""" + Publishes the artifacts of the project to the publication + repository. + The standard publish command will automatically also execute + the jar, jar-sources and jar-javadoc commands beforehand. + + Usage : ${topic}""", "${topic}", topic); + } +} \ No newline at end of file