hexadecimalDinosaur / octoprint-cli

Command line client for controlling your OctoPrint 3D printer server
GNU General Public License v3.0
38 stars 6 forks source link

Command Usage Wrong #13

Closed CommanderRedYT closed 3 years ago

CommanderRedYT commented 3 years ago

Describe the bug In the README.md it says octoprint-cli ... , but you would use python3 octoprint-cli.py ...

Additional context Would fix it with an install script (maybe .sh script) that 1. checks for dependencies and 2. maybe edits .bashrc for alias? (Not that good at programming so I wouldn't take this as the solution..!

hexadecimalDinosaur commented 3 years ago

Are you using Windows or Linux? The reason I put it that way in the README.md is because on Linux if you symlink it or place it at the path ~/.local/bin/octoprint-cli you can run it in the terminal without the python command by using the shebang.

Having an install script is a good idea. I can probably make one to download dependencies and create symlinks in ~/.local/bin

CommanderRedYT commented 3 years ago

Using Ubuntu 20.04. For the install script you could do it like NODE-RED: grafik

(Its just an file containing shell script stored in the repo)

hexadecimalDinosaur commented 3 years ago

I decided that I won't be making an install script and instead will be uploading the script to PyPI so that it can be installed and updated with pip. This should help with downloading dependencies and setting up the program to run from the terminal without needing to run python. I will update the README.md with instructions on installing using pip once I finish this process.

https://github.com/UserBlackBox/octoprint-cli/projects/1#card-52115056

hexadecimalDinosaur commented 3 years ago

octoprint-cli has been packaged and upload to PyPI which helps install the program and dependencies using pip

pip install octoprint-cli --user

The program can also be updated in the future using pip install --upgrade octoprint-cli --user