diff --git a/README.md b/README.md index 95f9cb1..59a862a 100644 --- a/README.md +++ b/README.md @@ -206,6 +206,9 @@ Key: - [ ] Support for Tautulli +### Themes +Managarr ships with a few themes out of the box. See the [Themes README](themes/README.md) page for more information. + ### The Managarr CLI Managarr can be used in one of two ways: As a TUI, or as a CLI for managing your Servarrs. @@ -315,6 +318,7 @@ managarr --config-file /path/to/config.yml ### Example Configuration: ```yaml +theme: default radarr: - host: 192.168.0.78 port: 7878 @@ -357,6 +361,7 @@ tautulli: ### Example Multi-Instance Configuration: ```yaml +theme: default radarr: - host: 192.168.0.78 # No name specified, so this instance's name will default to 'Radarr 1' port: 7878 diff --git a/proc_macros/validate_theme_derive/src/lib.rs b/proc_macros/validate_theme_derive/src/lib.rs index 686beea..6a6ca27 100644 --- a/proc_macros/validate_theme_derive/src/lib.rs +++ b/proc_macros/validate_theme_derive/src/lib.rs @@ -1,18 +1,18 @@ use proc_macro::TokenStream; use quote::quote; -use syn::{parse_macro_input, Data, DeriveInput, Fields}; +use syn::{Data, DeriveInput, Fields, parse_macro_input}; /// Derive macro for generating a `validate` method for a Theme struct. /// The `validate` method ensures that all values with the `validate` attribute are not `None`. /// Otherwise, an error message it output to both the log file and stdout and the program exits. -/// +/// /// # Example -/// +/// /// Valid themes pass through the program transitively without any messages being output. -/// +/// /// ``` /// use validate_theme_derive::ValidateTheme; -/// +/// /// #[derive(ValidateTheme, Default)] /// struct Theme { /// pub name: String, @@ -22,22 +22,22 @@ use syn::{parse_macro_input, Data, DeriveInput, Fields}; /// pub bad: Option