Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Expose zstash commands via import ztash #331

Open
aerorahul opened this issue Apr 5, 2024 · 0 comments
Open

[Feature]: Expose zstash commands via import ztash #331

aerorahul opened this issue Apr 5, 2024 · 0 comments

Comments

@aerorahul
Copy link

How will this affect the next version number?

New feature (increment MINOR version)

Is your feature request related to a problem?

No problem.
I would like to use zstash within an existing python program. For e.g.

from zstash import create
create(kwargs_to_create)

Similarly, other functions of zstash such as ls, extract, chgrp etc. could also be exposed.

Describe the solution you'd like

Making the methods such as setup_create in create.py take in optional arguments to allow passing the parser arguments as a dictionary. Doing so will allow create to be used directly from a calling python program.

There may be better more elegant solutions, but may need a redesign or refactor.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant