瀏覽代碼

Prompt 'no history' message when no history file exists

timvisee 7 年之前
父節點
當前提交
f2336467a2
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      ROADMAP.md
  2. 1 0
      cli/src/action/history.rs

+ 1 - 1
ROADMAP.md

@@ -1,8 +1,8 @@
 # Release 0.1
-- Create history command
 - History compiler flag
 - Lowercase error messages
 - Automatically get owner token, from file history when setting password
+- Switch to `directories` instead of `app_dirs2`?
 - Allow file/directory archiving on upload
 - Allow unarchiving on download 
 - Show a simplified command list when calling `ffsend` without arguments

+ 1 - 0
cli/src/action/history.rs

@@ -43,6 +43,7 @@ impl<'a> History<'a> {
         // Get the history path, make sure it exists
         let history_path = matcher_main.history();
         if !history_path.is_file() {
+            println!("No files in history");
             return Ok(());
         }