Skip to content

Commit

Permalink
feat(cli): Add descriptive help text to the top level osc command
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bochtler <[email protected]>
  • Loading branch information
MarcelBochtler authored and mnonnenmacher committed Jan 21, 2025
1 parent 23514f7 commit f7f84fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/src/main/kotlin/OrtServerMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package org.eclipse.apoapsis.ortserver.cli

import com.github.ajalt.clikt.command.SuspendingNoOpCliktCommand
import com.github.ajalt.clikt.command.main
import com.github.ajalt.clikt.core.Context
import com.github.ajalt.clikt.core.subcommands
import com.github.ajalt.clikt.parameters.groups.OptionGroup
import com.github.ajalt.clikt.parameters.groups.provideDelegate
Expand Down Expand Up @@ -58,6 +59,10 @@ class OrtServerMain : SuspendingNoOpCliktCommand(COMMAND_NAME) {
message = { "$commandName CLI version $it" }
)
}

override fun help(context: Context) = """
The ORT Server Client (OSC) is a Command Line Interface (CLI) to interact with an ORT Server instance.
""".trimIndent()
}

class OrtServerOptions : OptionGroup(
Expand Down

0 comments on commit f7f84fa

Please sign in to comment.