If you are using (or want to use) the Fish shell, you can use a Fish Function to make your python command run a container with some default options (Python example linked at the end of this article).
python
Here is how it could look.
$ python -p 8000:8000 -- server.py --host 0.0.0.0 --port 8000
And if you are not using Fish, you will probably have learned one thing or two. Win win.
Thanks for the information!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you are using (or want to use) the Fish shell, you can use a Fish Function to make your
python
command run a container with some default options (Python example linked at the end of this article).Fish in the boat
Amin ・ Feb 28 ・ 4 min read
Here is how it could look.
And if you are not using Fish, you will probably have learned one thing or two. Win win.
Thanks for the information!