add plm command for list management

This commit is contained in:
trinity-1686a
2022-12-17 17:51:51 +01:00
parent 1536a6d3f3
commit 771d4325c2
4 changed files with 283 additions and 1 deletions
+3
View File
@@ -4,6 +4,7 @@ use plume_models::{instance::Instance, Connection as Conn, CONFIG};
use std::io::{self, prelude::*};
mod instance;
mod list;
mod migration;
mod search;
mod timeline;
@@ -18,6 +19,7 @@ fn main() {
.subcommand(migration::command())
.subcommand(search::command())
.subcommand(timeline::command())
.subcommand(list::command())
.subcommand(users::command());
let matches = app.clone().get_matches();
@@ -42,6 +44,7 @@ fn main() {
("timeline", Some(args)) => {
timeline::run(args, &conn.expect("Couldn't connect to the database."))
}
("lists", Some(args)) => list::run(args, &conn.expect("Couldn't connect to the database.")),
("users", Some(args)) => {
users::run(args, &conn.expect("Couldn't connect to the database."))
}