about summary refs log tree commit diff stats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 4bd069b..48c6802 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -13,7 +13,7 @@ fn main() {
         .version(clap::crate_version!())
         .author("Ben Morrison (gbmor)")
         .about("Command-line community notices system")
-        .subcommand(clap::SubCommand::with_name("list").about("Display notices"))
+        //.subcommand(clap::SubCommand::with_name("list").about("Display notices"))
         .subcommand(clap::SubCommand::with_name("post").about("Post a new notice"))
         /*.subcommand(
             clap::SubCommand::with_name("update")
@@ -38,16 +38,14 @@ fn main() {
 
     info!("Startup completed in {:?}ms", start.elapsed().as_millis());
 
-    if let Some(_) = arg_matches.subcommand_matches("list") {
-        info!("Listing notes...");
-        list_matches(&db);
-        process::exit(0);
-    } else if let Some(_) = arg_matches.subcommand_matches("post") {
+    if let Some(_) = arg_matches.subcommand_matches("post") {
         info!("New post...");
         post(&db);
         list_matches(&db);
         process::exit(0);
     }
+
+    list_matches(&db);
 }
 
 fn list_matches(db: &db::Conn) {
ommitter Ben Morrison <ben@gbmor.dev> 2019-05-14 16:56:33 -0400 rewrote travis config' href='/gbmor/getwtxt/commit/.travis.yml?id=6a712db69d834306be681e3ec449d2cfaa477f1a'>6a712db ^
a8464ae ^
c2af133 ^






86b7c42 ^
c5daf91 ^
fff90c7 ^
c2af133 ^
99d2df6 ^


c5daf91 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30