gt-tool 3.0.1

CLI tools for interacting with the Gitea API. Mainly for attaching files to releases.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

pub mod release;
pub mod repo;

#[derive(Debug, Deserialize, Serialize)]
pub struct Attachment {
    id: usize,
    name: String,
    size: i64,
    download_count: i64,
    created_at: String, // TODO: Date-time struct
    uuid: String,
    browser_download_url: String,
}