omg_api/pastebin.rs
1use clap::Subcommand;
2
3#[derive(Debug, Subcommand)]
4pub enum Pastebin {
5 /// Get a specific paste for an omg.lol address
6 Get {
7 /// Name of the paste to get
8 name: String,
9 },
10 /// Get all pastes for an omg.lol address
11 GetAll,
12 /// Get all public pastes for an omg.lol address
13 GetAllPublic,
14 /// Create/update a paste for an omg.lol address
15 Set {
16 /// Name of the paste to create (and the address used to retrieve it)
17 name: String,
18 /// Content of the paste
19 content: String,
20 },
21 /// Delete a paste for an omg.lol address
22 Delete {
23 /// Name of the paste to delete
24 name: String,
25 },
26}
27
28impl Pastebin {
29 pub fn process(&self, _address: &str) {
30 match self {
31 Pastebin::Get { name: _ } => todo!(),
32 Pastebin::GetAll => todo!(),
33 Pastebin::GetAllPublic => todo!(),
34 Pastebin::Set { name: _, content: _ } => todo!(),
35 Pastebin::Delete { name: _ } => todo!(),
36 }
37 }
38}