cardano-rt-view-0.1.0
Safe HaskellNone
LanguageHaskell2010

Cardano.RTView.Config

Synopsis

Documentation

prepareConfigAndParams :: RTViewParams -> IO (Configuration, RTViewParams, [RemoteAddrNamed]) Source #

There are few possible ways how we can prepare RTView configuration: 1. By running interactive dialog with the user. If `--config` CLI-option isn't provided, the user will answer few questions and actual configuration will be prepared based on these answers. 2. By providing configuration explicitly. If `--config`, `--static` and `--port` options are provided, these values will be used (interactive dialog will be skipped). 3. By using the last used configuration. If the user already launched `cardano-rt-view` previously, the configuration was stored in user's local directory (different for each supported platform), and by default that configuration will be used again.