diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-02-25 12:31:56 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-02-25 12:31:56 -0700 |
commit | 7fa4f3cf38cf7cee6aab7984b3e5c8aa969188af (patch) | |
tree | 07fbf36bc8323e1639093b27ab6313253a0d3fd2 | |
parent | 88e617f8ffa058349d55939724b0a69669d2f16c (diff) | |
download | noteless-7fa4f3cf38cf7cee6aab7984b3e5c8aa969188af.tar.gz noteless-7fa4f3cf38cf7cee6aab7984b3e5c8aa969188af.tar.xz |
Removed main cat_note
This was replaced by the note_cat function.
Also added some more comments.
-rw-r--r-- | src/main.c | 28 |
1 files changed, 9 insertions, 19 deletions
@@ -23,6 +23,9 @@ // #include "note.h" // #include "path.h" +/** + * Prints the standard help text + */ void get_help() { char out[] = "\nNoteless provides a simple command line interface for note " "taking.\n\n" @@ -42,6 +45,7 @@ void get_help() { printf("%s\n", out); } + /** * Prints names of all notes * @@ -54,10 +58,10 @@ void list_notes(note_list_t* list) { } } -// -// /** -// * Searches all note contents for the specified text -// */ + +/** + * Searches all note contents for the specified text + */ // int search_notes( note_list list, string term ) { // vector<string> matches = list.find( true, term ); // for( int i = 0; i < matches.size(); i++ ) { @@ -68,21 +72,7 @@ void list_notes(note_list_t* list) { // } // return 0; // } -// -// int cat_note( note_list list, string name ) { -// vector<string> body; -// if( list.cat_note( name, &body ) == 0 ) { -// // If list returns true, the note exists -// for( int i = 0; i < body.size(); i++ ) { -// cout << body[i] << endl; -// } -// } else { -// // List cat_note returned false. Note doesn't exist -// cout << "Note " << name << " could not be found." << endl; -// return 1; -// } -// return 0; -// } + int main(int argc, char* argv[]) { /** |