o

dynamics.cli

MainHelpers

object MainHelpers extends LazyLogger

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MainHelpers
  2. LazyLogger
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def actionResultProcessor[A](noisy: Boolean, start: Array[Int]): (Either[Throwable, A]) ⇒ IO[(String, Int)]

    Process an Attempt[A] = Either[Throwable, A] from an Action run.

    Process an Attempt[A] = Either[Throwable, A] from an Action run. Left exceptions are matched and printed out otherwise the program result is printed. The output program message may be quite voluminous if there was an error.

    noisy

    Whether to print the runtime out.

    start

    Start time information array from process.hrtime.

    returns

    Tuple of final program message and program exit code.

  2. val defaultActionSelector: ActionSelector

    Provide a default set of actions.

    Provide a default set of actions. If no commands are recognized this runs an action to inform the user to use --help. It always returns a Some.

  3. def gatherEnvVariables(c: CommonConfig): CommonConfig

    Create a copy of CommonConfig to reflect enviroment variables relevant to dynamicsclient.

  4. lazy val logger: Logger
    Definition Classes
    LazyLogger
  5. def run(zero: AppConfig, moreOpts: Option[(OptionParser[AppConfig]) ⇒ Unit] = None, moreCommands: Option[ActionSelector] = None)(implicit ec: ExecutionContext, F: MonadError[IO, Throwable]): Unit

    Run the program with a way to provide some more options if desired.

    Run the program with a way to provide some more options if desired. All standard options are added by default.