feat(cli): Support for fetching all sonarr language profiles
This commit is contained in:
@@ -49,6 +49,8 @@ pub enum SonarrListCommand {
|
||||
},
|
||||
#[command(about = "List all Sonarr indexers")]
|
||||
Indexers,
|
||||
#[command(about = "List all Sonarr language profiles")]
|
||||
LanguageProfiles,
|
||||
#[command(about = "Fetch Sonarr logs")]
|
||||
Logs {
|
||||
#[arg(long, help = "How many log events to fetch", default_value_t = 500)]
|
||||
@@ -160,6 +162,13 @@ impl<'a, 'b> CliCommandHandler<'a, 'b, SonarrListCommand> for SonarrListCommandH
|
||||
.await?;
|
||||
serde_json::to_string_pretty(&resp)?
|
||||
}
|
||||
SonarrListCommand::LanguageProfiles => {
|
||||
let resp = self
|
||||
.network
|
||||
.handle_network_event(SonarrEvent::GetLanguageProfiles.into())
|
||||
.await?;
|
||||
serde_json::to_string_pretty(&resp)?
|
||||
}
|
||||
SonarrListCommand::Logs {
|
||||
events,
|
||||
output_in_log_format,
|
||||
|
||||
Reference in New Issue
Block a user