The main function of the application, which can access the command-line
arguments through the args helper method of this class. If the provided
effect fails for any reason, the cause will be logged, and the exit code of
the application will be non-zero. Otherwise, the exit code of the
application will be zero.
The main function of the application, which can access the command-line
arguments through the args helper method of this class. If the provided
effect fails for any reason, the cause will be logged, and the exit code of
the application will be non-zero. Otherwise, the exit code of the
application will be zero.
Attributes
Inherited methods
final def <>(that: ZIOApp)(implicit trace: Trace): ZIOApp
Composes this ZIOApp with another ZIOApp, to yield an application
that executes the logic of both applications.
Composes this ZIOApp with another ZIOApp, to yield an application
that executes the logic of both applications.
Attributes
Inherited from:
ZIOApp
final def exit(code: ExitCode)(implicit trace: Trace): UIO[Unit]
A helper function to exit the application with the specified exit code.
A helper function to exit the application with the specified exit code.
Attributes
Inherited from:
ZIOApp
final def getArgs(implicit trace: Trace): ZIO[ZIOAppArgs, Nothing, Chunk[String]]
A helper function to obtain access to the command-line arguments of the
application. You may use this helper function inside your run function.
A helper function to obtain access to the command-line arguments of the
application. You may use this helper function inside your run function.
Attributes
Inherited from:
ZIOApp
final def invoke(args: Chunk[String])(implicit trace: Trace): ZIO[Any, Any, Any]
Invokes the main app. Designed primarily for testing.
Invokes the main app. Designed primarily for testing.