object MainHelpers extends LazyLogger
- Alphabetic
- By Inheritance
- MainHelpers
- LazyLogger
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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.
-
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.
-
def
gatherEnvVariables(c: CommonConfig): CommonConfig
Create a copy of CommonConfig to reflect enviroment variables relevant to dynamicsclient.
-
lazy val
logger: Logger
- Definition Classes
- LazyLogger
-
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.