We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1110360 commit 0931cc4Copy full SHA for 0931cc4
src/main.rs
@@ -7,6 +7,7 @@
7
8
use crate::api::auth::session;
9
use crate::api::ing::{Ing, IngType};
10
+use crate::api::news::News;
11
use crate::api::post::Post;
12
use crate::api::user::User;
13
use crate::args::parser::no_operation;
@@ -129,6 +130,13 @@ async fn main() -> Result<()> {
129
130
foe.then(||panic_if_err(&id));
131
quiet.not().then(||display::update_post(style, &id));
132
}
133
+ _ if let Some((skip, take)) = parser::list_news(&args) => {
134
+ let news_vec = try {
135
+ News::new(pat?).get_list(skip, take).await?
136
+ };
137
+ foe.then(||panic_if_err(&news_vec));
138
+ quiet.not().then(||display::list_news(style, &news_vec, rev));
139
+ }
140
141
_ if no_operation(&args) => {
142
Args::command().print_help()?;
0 commit comments