AkBKukU / youtube-cli

CLI interface for some youtube stuff
MIT License
2 stars 0 forks source link

How to handle future significant features being added? #3

Closed AkBKukU closed 4 years ago

AkBKukU commented 5 years ago

I'm planning on adding editing currently uploaded videos as a feature, as well as some statistics reporting. The features shouldn't all be in a file called upload.py. There needs to either separate files for each major function, or a master file with all functions.

This needs to always be non-interactive. Perhaps a git style sub commands. Something like these: ytcli.py video upload -t "New Video" -f video.mp4 ytcli.py channel stats --id 3nrwgm34 --subscribers-total ytcli.py video edit --id rn4kn4lg -p public

AkBKukU commented 4 years ago

This has been implemented in https://github.com/AkBKukU/youtube-cli/commit/f8813c8b0056747c03a89a0026a9cb8652a56f60 . Future major features will be added as additional modes or actions to be added to yt.py.

The dynamic loading of parameters allows for reusing the names of parameters between modes and actions to prevent running out of shorthand parameter flags.