From 2064a5cd1b401ba7f322583f63aa2175a2fe3ac0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 30 Apr 2017 11:38:54 +0530 Subject: [PATCH] Placeholder implementations for all calibredb cmds --- src/calibre/db/cli/cmd_add_custom_column.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_backup_metadata.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_catalog.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_check_library.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_clone.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_custom_columns.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_embed_metadata.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_export.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_list_categories.py | 22 +++++++++++++++++++ .../db/cli/cmd_remove_custom_column.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_restore_database.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_saved_searches.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_search.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_set_custom.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_set_metadata.py | 22 +++++++++++++++++++ src/calibre/db/cli/cmd_show_metadata.py | 22 +++++++++++++++++++ 16 files changed, 352 insertions(+) create mode 100644 src/calibre/db/cli/cmd_add_custom_column.py create mode 100644 src/calibre/db/cli/cmd_backup_metadata.py create mode 100644 src/calibre/db/cli/cmd_catalog.py create mode 100644 src/calibre/db/cli/cmd_check_library.py create mode 100644 src/calibre/db/cli/cmd_clone.py create mode 100644 src/calibre/db/cli/cmd_custom_columns.py create mode 100644 src/calibre/db/cli/cmd_embed_metadata.py create mode 100644 src/calibre/db/cli/cmd_export.py create mode 100644 src/calibre/db/cli/cmd_list_categories.py create mode 100644 src/calibre/db/cli/cmd_remove_custom_column.py create mode 100644 src/calibre/db/cli/cmd_restore_database.py create mode 100644 src/calibre/db/cli/cmd_saved_searches.py create mode 100644 src/calibre/db/cli/cmd_search.py create mode 100644 src/calibre/db/cli/cmd_set_custom.py create mode 100644 src/calibre/db/cli/cmd_set_metadata.py create mode 100644 src/calibre/db/cli/cmd_show_metadata.py diff --git a/src/calibre/db/cli/cmd_add_custom_column.py b/src/calibre/db/cli/cmd_add_custom_column.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_add_custom_column.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_backup_metadata.py b/src/calibre/db/cli/cmd_backup_metadata.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_backup_metadata.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_catalog.py b/src/calibre/db/cli/cmd_catalog.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_catalog.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_check_library.py b/src/calibre/db/cli/cmd_check_library.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_check_library.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_clone.py b/src/calibre/db/cli/cmd_clone.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_clone.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_custom_columns.py b/src/calibre/db/cli/cmd_custom_columns.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_custom_columns.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_embed_metadata.py b/src/calibre/db/cli/cmd_embed_metadata.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_embed_metadata.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_export.py b/src/calibre/db/cli/cmd_export.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_export.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_list_categories.py b/src/calibre/db/cli/cmd_list_categories.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_list_categories.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_remove_custom_column.py b/src/calibre/db/cli/cmd_remove_custom_column.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_remove_custom_column.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_restore_database.py b/src/calibre/db/cli/cmd_restore_database.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_restore_database.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_saved_searches.py b/src/calibre/db/cli/cmd_saved_searches.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_saved_searches.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_search.py b/src/calibre/db/cli/cmd_search.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_search.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_set_custom.py b/src/calibre/db/cli/cmd_set_custom.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_set_custom.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_set_metadata.py b/src/calibre/db/cli/cmd_set_metadata.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_set_metadata.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0 diff --git a/src/calibre/db/cli/cmd_show_metadata.py b/src/calibre/db/cli/cmd_show_metadata.py new file mode 100644 index 0000000000..81b38b65b3 --- /dev/null +++ b/src/calibre/db/cli/cmd_show_metadata.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python2 +# vim:fileencoding=utf-8 +# License: GPLv3 Copyright: 2017, Kovid Goyal + +from __future__ import absolute_import, division, print_function, unicode_literals + +readonly = False +version = 0 # change this if you change signature of implementation() + + +def implementation(db, notify_changes, *args): + is_remote = notify_changes is not None + is_remote + + +def option_parser(get_parser): + pass + + +def main(opts, args, dbctx): + raise NotImplementedError('TODO: implement this') + return 0