CliProgram

declslides.cli.CliProgram
final class CliProgram(commandFactory: RenderCommandFactory, printError: String => Unit, printInfo: String => Unit)

Orchestrates the command-line flow for declslides.

A CliProgram translates raw arguments into a validated configuration, builds the rendering command, executes it, and reports either a friendly error or a success message.

Value parameters

commandFactory

factory used to build the concrete rendering command

printError

sink for user-facing error messages

printInfo

sink for user-facing informational messages

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def run(args: Array[String]): ExitCode

Runs the CLI program with the provided arguments.

Runs the CLI program with the provided arguments.

Value parameters

args

raw command-line arguments

Attributes

Returns

the semantic exit code of the execution