Go to file
blankie 58991cee1b
Add README.md
2024-01-02 23:44:58 +11:00
blankie Initial commit 2024-01-02 23:36:58 +11:00
.gitignore Initial commit 2024-01-02 23:36:58 +11:00
CMakeLists.txt Add list 2024-01-02 23:40:41 +11:00
LICENSE Initial commit 2024-01-02 23:36:58 +11:00
README.md Add README.md 2024-01-02 23:44:58 +11:00
database.cpp Initial commit 2024-01-02 23:36:58 +11:00
database.h Initial commit 2024-01-02 23:36:58 +11:00
main.cpp Add list 2024-01-02 23:40:41 +11:00
sqlite_wrapper.cpp Initial commit 2024-01-02 23:36:58 +11:00
sqlite_wrapper.h Initial commit 2024-01-02 23:36:58 +11:00
subcommand_create.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_delete.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_edit.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_get.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_info.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_list.cpp Add list 2024-01-02 23:40:41 +11:00
subcommand_prune.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_search.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommand_set.cpp Initial commit 2024-01-02 23:36:58 +11:00
subcommands.h Add list 2024-01-02 23:40:41 +11:00
utils.cpp Initial commit 2024-01-02 23:36:58 +11:00
utils.h Initial commit 2024-01-02 23:36:58 +11:00

README.md

mf

A serverless meme finder with full-text search (thanks to SQLite, but you have to describe all the images yourself)

Usage: mf [-C=<directory>] create
  or   mf [-C=<directory>] list
  or   mf [-C=<directory>] search <search query>
  or   mf [-C=<directory>] prune

  or   mf [-C=<directory>] {info|show} <file>...
  or   mf [-C=<directory>] delete <file>...
  or   mf [-C=<directory>] edit <file>
  or   mf [-C=<directory>] get <file>
  or   mf [-C=<directory>] set <file> <source> <description> <misc info>

-C=<directory> changes the current working directory to <directory> before a
subcommand is executed. This causes the database to be looked up in
<directory>, all file paths are relative to <directory> and database creation
to be inside of <directory>

create creates a database in the current directory (or <directory>)

prune removes all metadata entries that correspond to non-existent files, then
vaccums the database

delete only deletes the metadata for the files specified, not the actual files
themselves

get outputs the file's path, source, description, and miscellaneous information
delimited by a null-byte