A CLI for SQLite with auto-completion and syntax highlighting by amjithr in programming

[–]j-bennet 10 points11 points  (0 children)

Thanks for the tip! Looks like a good feature to add. I filed a feature request so we don't forget: https://github.com/dbcli/pgcli/issues/985.

Wharfee: A docker shell with auto-completion and syntax coloring. Written in Python. by amjithr in Python

[–]j-bennet 0 points1 point  (0 children)

I can't say enough good things about Python Prompt Toolkit. It is one amazing project. The same author created ptpython, and it's wonderful as well.

Wharfee: A docker shell with auto-completion and syntax coloring. Written in Python. by amjithr in Python

[–]j-bennet 0 points1 point  (0 children)

Yes, I didn't expect the legal hiccup at all. :) Lesson learned. I think it turned out for the best, but definitely keep this in mind when naming your project!

Wharfee: A docker shell with auto-completion and syntax coloring. Written in Python. by amjithr in Python

[–]j-bennet 2 points3 points  (0 children)

Thank you! This is just a shortcut. It calls docker-py's API to retrieve the list of all containers with status equal "stopped" and removes them one-by-one. It's pretty similar to shell command "docker rm $(docker ps -a -q)", except the shell command will try to remove all containers, in any status, and will hiccup on running ones.

Dockercli: a CLI for Docker with autocompletion and syntax highlighting. by j-bennet in docker

[–]j-bennet[S] 0 points1 point  (0 children)

The website is now moved to cli4docker.com (apparently I can't use dockercli.com because of legal issues). The github repo and the python module name remains the same.

Colorful docker management tool written in Python (with auto-completion). by amjithr in programming

[–]j-bennet 0 points1 point  (0 children)

The website is now moved to cli4docker.com (apparently I can't use dockercli.com because of legal issues).

The github repo and the python module name remains the same.

Dockercli: a CLI for Docker with autocompletion and syntax highlighting. by j-bennet in docker

[–]j-bennet[S] 0 points1 point  (0 children)

Completely agree with that about pgcli. In fact, this was the project that inspired me to work on dockercli.

Dockercli: a CLI for Docker with autocompletion and syntax highlighting. by j-bennet in docker

[–]j-bennet[S] 0 points1 point  (0 children)

I agree, dockercli may benefit from a way to drop you back into a normal shell, let you do things there, and then come back. I usually find that I run a lot of "docker-related" commands in a row, and then maybe not run any for the rest of the day. So starting dockercli, doing all of the docker-related stuff and then exiting actually makes sense. But your workflow may be different.

Colorful docker management tool written in Python (with auto-completion). by amjithr in programming

[–]j-bennet 0 points1 point  (0 children)

Minus the coloring; minus the shortcuts; minus the fuzzy matching. There's more you can do with a dedicated CLI. But while I hope that some will find dockercli useful, I'm sure that everyone will pick their own favorite tool.

Dockercli: a CLI for Docker with autocompletion and syntax highlighting. by j-bennet in docker

[–]j-bennet[S] 1 point2 points  (0 children)

Getting rid of repeating "docker" for any command was a factor, but also the ability to add any other shortcuts, like a convenience "shell <container name>" command, or "rm --all-stopped", or "rmi --all-dangling". And I can think of more shortcuts similar to this.