Simple

cats.effect.IOApp$.Simple
trait Simple extends IOApp

A simplified version of IOApp for applications which ignore their process arguments and always produces ExitCode.Success (unless terminated exceptionally or interrupted).

Attributes

See also:
Source:
IOApp.scala
Graph
Supertypes
trait IOApp
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def run: IO[Unit]

Attributes

Source:
IOApp.scala

Concrete methods

final def run(args: List[String]): IO[ExitCode]

The entry point for your application. Will be called by the runtime when the process is started. If the underlying runtime supports it, any arguments passed to the process will be made available in the args parameter. The numeric value within the resulting ExitCode will be used as the exit code when the process terminates unless terminated exceptionally or by interrupt.

The entry point for your application. Will be called by the runtime when the process is started. If the underlying runtime supports it, any arguments passed to the process will be made available in the args parameter. The numeric value within the resulting ExitCode will be used as the exit code when the process terminates unless terminated exceptionally or by interrupt.

Attributes

args

The arguments passed to the process, if supported by the underlying runtime. For example, java com.company.MyApp --foo --bar baz or node com-mycompany-fastopt.js --foo --bar baz would each result in List("--foo", "--bar", "baz").

See also:

IOApp.Simple!.run:cats\.effect\.IO[Unit]*

Source:
IOApp.scala

Inherited methods

final def main(args: Array[String]): Unit

Attributes

Inherited from:
IOApp
Source:
IOApp.scala