From cf07bcd3bb6fc43c8f5ed4b604f1457c501b1b95 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Fri, 15 Mar 2024 22:28:57 +0100 Subject: [PATCH] Cleanup command line option descriptions --- .../io/github/sgtsilvio/gradle/oci/OciPushSingleTask.kt | 4 ++-- src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushTask.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushSingleTask.kt b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushSingleTask.kt index 78bc1420..39b17a44 100644 --- a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushSingleTask.kt +++ b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushSingleTask.kt @@ -17,14 +17,14 @@ abstract class OciPushSingleTask @Inject constructor(workerExecutor: WorkerExecu @get:Internal @get:Option( option = "name", - description = "Names the image. If not specified the imageName defined in the image definition is used.", + description = "Names the image. If not specified, the imageName defined in the image definition is used.", ) val imageName = project.objects.property() @get:Internal @get:Option( option = "tag", - description = "Tags the image. Option can be specified multiple times. The value '.' translates to the imageTag defined in the image definition. If not specified the imageTag defined in the image definition is used.", + description = "Tags the image. Option can be specified multiple times. The value '.' translates to the imageTag defined in the image definition. If not specified, the imageTag defined in the image definition is used.", ) val imageTags = project.objects.setProperty() } diff --git a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushTask.kt b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushTask.kt index a50e9493..3294ed90 100644 --- a/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushTask.kt +++ b/src/main/kotlin/io/github/sgtsilvio/gradle/oci/OciPushTask.kt @@ -81,7 +81,7 @@ abstract class OciPushTask @Inject constructor( protected fun setRegistryName(registryName: String) = registry.from(project.extensions.getByType().registries.list[registryName]) - @Option(option = "url", description = "Pushes to the specified registry url.") + @Option(option = "url", description = "Pushes to the specified registry URL.") protected fun setRegistryUrl(registryUrl: String) = registry.url.set(project.uri(registryUrl)) @Option(