Skip to content

Commit

Permalink
Cleanup command line option descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtSilvio committed Mar 15, 2024
1 parent d2918cf commit cf07bcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>()

@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<String>()
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ abstract class OciPushTask @Inject constructor(
protected fun setRegistryName(registryName: String) =
registry.from(project.extensions.getByType<OciExtension>().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(
Expand Down

0 comments on commit cf07bcd

Please sign in to comment.