docs: Add Rustdoc to list mode's show_list_structured function
Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
@@ -314,21 +314,6 @@ pub fn mode_list(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Shows the list of items in a structured format (JSON or YAML).
|
||||
///
|
||||
/// This function converts the list of items to the specified structured format
|
||||
/// and prints it to stdout.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// * `items_with_meta` - Vector of items with metadata to display.
|
||||
/// * `data_path` - Path to the data directory for file size calculations.
|
||||
/// * `settings` - Reference to application settings.
|
||||
/// * `output_format` - The desired output format (JSON or YAML).
|
||||
///
|
||||
/// # Returns
|
||||
///
|
||||
/// * `Result<()>` - Success or error if serialization fails.
|
||||
fn show_list_structured(
|
||||
items_with_meta: Vec<ItemWithMeta>,
|
||||
data_path: std::path::PathBuf,
|
||||
|
||||
Reference in New Issue
Block a user