tealdeer-rs / tealdeer

A very fast implementation of tldr in Rust.
https://tealdeer-rs.github.io/tealdeer/
Apache License 2.0
4.17k stars 123 forks source link

Configure platforms in config file #378

Open niklasmohrin opened 2 weeks ago

niklasmohrin commented 2 weeks ago

There should be a config file option to specify what platforms should be used for looking up pages. It should take the same values as the --platform CLI argument. The precedence rules should be

  1. If --platform passed, use these values
  2. Otherwise, if config file specifies platforms, use these values
  3. Otherwise, use PlatformType::current()

The handling of the common platform should (for now) not be changed. We can work out these details when tackling #323.