Make package more library-friendly #207
jmcantrell
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Can you provide the intended API usage you think can be used by client programs? Are you thinking something like: from trashcli.api import put
put('/file/to/trash') or something different? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a couple of scripts that I'm working on that could benefit from being able to use the functionality that trash-cli provides in other contexts. The main project that would benefit from this is a ranger plugin that uses trash-cli directly instead of calling the shell commands. In order to do this currently, you would have to mimic what is happening in the main function of each action's module (e.g.
trashcli.put.main
), but use paths that are passed in as function parameters (as opposed tosys.argv
).I wouldn't mind working on an initial pull request for this, if you're open to it. I just wanted to see how open you might be to that change, or if that was something you had considered at any point.
Beta Was this translation helpful? Give feedback.
All reactions