Refactor commands to reduce code duplication
Always use HTTPS
Merge pull request #1 from Bendihossan/refactor

Refactor