Skip to content

Commit

Permalink
refactor!: remove sync plugin
Browse files Browse the repository at this point in the history
The original idea of the sync plugin to sync multiple metadata sources with one command has some implementation barriers that were not fully fleshed out. Instead, each plugin should just implement their own sync commands.
  • Loading branch information
jtpavlock committed Dec 20, 2022
1 parent d171be0 commit ae0889d
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 217 deletions.
22 changes: 0 additions & 22 deletions docs/cli.rst
Expand Up @@ -148,25 +148,3 @@ Optional Arguments
Query for matching albums instead of tracks.
``-e, --extra``
Query for matching extras instead of tracks.

sync
====
Syncs any changes to your music from connected metadata sources.

.. code-block:: bash
moe sync [-h] [-a | -e] [-p] query
Positional Arguments
--------------------
``query``
Query your library for items to sync. See the :doc:`query docs <../query>` for more info.

Optional Arguments
------------------
``-h, --help``
Display the help message.
``-a, --album``
Query for matching albums instead of tracks.
``-e, --extra``
Query for matching extras instead of tracks.
2 changes: 1 addition & 1 deletion docs/configuration.rst
Expand Up @@ -18,7 +18,7 @@ Global Options
==============
Most configuration options reside in their relevant plugin, however there are the following global options:

``default_plugins = ["add", "edit", "info", "ls", "move", "rm", "write"]``
``default_plugins = ["add", "cli", "duplicate", "edit", "import", "list", "move", "remove", "write"]``
Overrides the list of default plugins.

``disable_plugins = []``
Expand Down
8 changes: 0 additions & 8 deletions docs/developers/api/core.rst
Expand Up @@ -41,7 +41,6 @@ Query
:members:
:undoc-members:


Plugins
=======
``moe``
Expand Down Expand Up @@ -96,13 +95,6 @@ Remove
.. automodule:: moe.remove
:members:

Sync
----
``moe.sync``

.. automodule:: moe.sync
:members:

Write
-----
``moe.write``
Expand Down
1 change: 0 additions & 1 deletion moe/config.py
Expand Up @@ -46,7 +46,6 @@
"list": "moe.list",
"move": "moe.move",
"read": "moe.read",
"sync": "moe.sync",
"remove": "moe.remove",
"write": "moe.write",
}
Expand Down
18 changes: 0 additions & 18 deletions moe/sync/__init__.py

This file was deleted.

40 changes: 0 additions & 40 deletions moe/sync/sync_cli.py

This file was deleted.

29 changes: 0 additions & 29 deletions moe/sync/sync_core.py

This file was deleted.

52 changes: 0 additions & 52 deletions tests/sync/test_sync_cli.py

This file was deleted.

46 changes: 0 additions & 46 deletions tests/sync/test_sync_core.py

This file was deleted.

0 comments on commit ae0889d

Please sign in to comment.