-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move
add
command logic into API
In this refactor, we move the logic of the CLI `add` subcommand into the API class, for better reusability. We also deprecate the `-f` or `--from-file` argument, and automatically treat every valid file-path that is not a torrent nor a metalink as a source file (to read URIs from), recursively.
- Loading branch information
Showing
2 changed files
with
55 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters