wekan-cli 2.0.0

Agent-first, human-friendly command-line client for Wekan
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::client::{
    WekanClient,
    exports::{ExportError, ExportMetadata, ExportOptions},
};
use std::fs::File;
impl WekanClient {
    pub async fn export_board(
        &self,
        board: &str,
        options: ExportOptions<'_>,
        file: &mut File,
    ) -> Result<ExportMetadata, ExportError> {
        let mut segments = vec![board];
        segments.extend_from_slice(options.format.suffix());
        self.export_resource(&segments, options, file, false).await
    }
}