Skip to content

Commit f39a261

Browse files
committed
refactor(helper-cli): Conistently use internal visibility for commands
Signed-off-by: Frank Viernau <[email protected]>
1 parent fe8f348 commit f39a261

15 files changed

+15
-15
lines changed

helper-cli/src/main/kotlin/commands/ConvertOrtFileCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import org.ossreviewtoolkit.helper.utils.readOrtResult
2929
import org.ossreviewtoolkit.helper.utils.writeOrtResult
3030
import org.ossreviewtoolkit.utils.common.expandTilde
3131

32-
class ConvertOrtFileCommand : CliktCommand(
32+
internal class ConvertOrtFileCommand : CliktCommand(
3333
help = "Converts the given ORT file to a different format, e.g. '.json' to '.yml'."
3434
) {
3535
private val inputOrtFile by option(

helper-cli/src/main/kotlin/commands/DownloadResultsFromPostgresCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import org.ossreviewtoolkit.utils.common.expandTilde
4343
import org.ossreviewtoolkit.utils.ort.ORT_CONFIG_FILENAME
4444
import org.ossreviewtoolkit.utils.ort.ortConfigDirectory
4545

46-
class DownloadResultsFromPostgresCommand : CliktCommand(
46+
internal class DownloadResultsFromPostgresCommand : CliktCommand(
4747
name = "download-results-from-postgres",
4848
help = "Download an ORT result from a PostgreSQL database. The symmetric command to ORT's " +
4949
" upload-result-to-postgres command."

helper-cli/src/main/kotlin/commands/ExtractRepositoryConfigurationCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import org.ossreviewtoolkit.helper.utils.readOrtResult
2929
import org.ossreviewtoolkit.helper.utils.write
3030
import org.ossreviewtoolkit.utils.common.expandTilde
3131

32-
class ExtractRepositoryConfigurationCommand : CliktCommand(
32+
internal class ExtractRepositoryConfigurationCommand : CliktCommand(
3333
help = "Extract the repository configuration from the given ORT result file."
3434
) {
3535
private val ortFile by option(

helper-cli/src/main/kotlin/commands/GetPackageLicensesCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import org.ossreviewtoolkit.utils.ort.ortConfigDirectory
4242
import org.ossreviewtoolkit.utils.spdx.SpdxConstants
4343
import org.ossreviewtoolkit.utils.spdx.SpdxExpression
4444

45-
class GetPackageLicensesCommand : CliktCommand(
45+
internal class GetPackageLicensesCommand : CliktCommand(
4646
help = "Shows the root license and the detected license for a package denoted by the given package identifier."
4747
) {
4848
private val configFile by option(

helper-cli/src/main/kotlin/commands/ListLicenseCategoriesCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import org.ossreviewtoolkit.model.licenses.LicenseClassifications
3131
import org.ossreviewtoolkit.model.readValue
3232
import org.ossreviewtoolkit.utils.common.expandTilde
3333

34-
class ListLicenseCategoriesCommand : CliktCommand(
34+
internal class ListLicenseCategoriesCommand : CliktCommand(
3535
help = "Lists the license categories."
3636
) {
3737
private val licenseClassificationsFile by option(

helper-cli/src/main/kotlin/commands/ListPackagesCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import org.ossreviewtoolkit.model.licenses.LicenseView
3939
import org.ossreviewtoolkit.model.utils.createLicenseInfoResolver
4040
import org.ossreviewtoolkit.utils.common.expandTilde
4141

42-
class ListPackagesCommand : CliktCommand(
42+
internal class ListPackagesCommand : CliktCommand(
4343
help = "Lists the packages and optionally also projects contained in the given ORT result file."
4444
) {
4545
private val ortFile by option(

helper-cli/src/main/kotlin/commands/SetDependencyRepresentationCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import org.ossreviewtoolkit.utils.common.expandTilde
5454
* files can contain placeholders, which make them invalid (e.g. a placeholder for a numeric value causes serialization
5555
* to fail). Therefore, a special mode can be enabled, in which well-known placeholders are handled.
5656
*/
57-
class SetDependencyRepresentationCommand : CliktCommand(
57+
internal class SetDependencyRepresentationCommand : CliktCommand(
5858
help = "Set the dependency representation of an ORT result to a specific target format."
5959
) {
6060
/**

helper-cli/src/main/kotlin/commands/TransformResultCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import org.ossreviewtoolkit.utils.common.expandTilde
3636
*
3737
* See https://github.com/schibsted/jslt.
3838
*/
39-
class TransformResultCommand : CliktCommand(
39+
internal class TransformResultCommand : CliktCommand(
4040
name = "transform", help = "Implements a JSLT transformation on the given ORT result file."
4141
) {
4242
private val ortFile by option(

helper-cli/src/main/kotlin/commands/classifications/LicenseClassificationsCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import com.github.ajalt.clikt.core.subcommands
2424

2525
import org.ossreviewtoolkit.model.licenses.LicenseClassifications
2626

27-
class LicenseClassificationsCommand : NoOpCliktCommand(
27+
internal class LicenseClassificationsCommand : NoOpCliktCommand(
2828
help = "Commands for working with license classifications."
2929
) {
3030
init {

helper-cli/src/main/kotlin/commands/packageconfig/ExportPathExcludesCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import org.ossreviewtoolkit.model.config.PackageConfiguration
3838
import org.ossreviewtoolkit.model.readValue
3939
import org.ossreviewtoolkit.utils.common.expandTilde
4040

41-
class ExportPathExcludesCommand : CliktCommand(
41+
internal class ExportPathExcludesCommand : CliktCommand(
4242
help = "Export the path excludes to a path excludes file which maps repository URLs to the path excludes for the " +
4343
"respective repository"
4444
) {

0 commit comments

Comments
 (0)