diff --git a/README.md b/README.md index 6ac0397..14f4db5 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,8 @@ Cross platform(ish) productivity commands written in python. Tools for doing med * Shows all the ports that are in use at the current computer (useful for Arduino debugging). * diskaudit * walks the directory from the current directory and catalogs which of the child folders take up the most space. + * docker-purge: + * Removes all docker artifacts allowing a clean build. * git-bash (win32) * launches git-bash terminal (windows only). * gitconfig @@ -137,6 +139,7 @@ Running tox will install hooks into the .tox directory. Keep this in my if you a TODO: Add a cleanup function to undo this. # Release Notes + * 1.5.5: `docker-purge` to remove all docker artifacts and do a clean build. * 1.5.4: `codeup` no accepts `--verbose` and `--no-lint` * 1.5.3: `vidinfo` is now more robust and can now handle mkv files without crashing. * 1.5.2: `codeup` now defaults for "yes" when asking if to include files. diff --git a/src/zcmds/cmds.txt b/src/zcmds/cmds.txt index bc82c20..6bba748 100644 --- a/src/zcmds/cmds.txt +++ b/src/zcmds/cmds.txt @@ -52,4 +52,5 @@ pull = "zcmds.cmds.common.pull:main" gitconfigure = "zcmds.cmds.common.gitconfig:main" new = "zcmds.cmds.common.new:main" git-diff = "zcmds.cmds.common.git_diff:main" -trustdir = "zcmds.cmds.common.trustdir:main" \ No newline at end of file +trustdir = "zcmds.cmds.common.trustdir:main" +docker-purge "zcmds.cmd.common.docker_purge:main" \ No newline at end of file diff --git a/src/zcmds/cmds/common/docker_purge.py b/src/zcmds/cmds/common/docker_purge.py new file mode 100644 index 0000000..182e24b --- /dev/null +++ b/src/zcmds/cmds/common/docker_purge.py @@ -0,0 +1,19 @@ +""" +This module contains a function which_all which returns all the paths where +the program name could be found. This is useful if you want to know if there +are multiple versions of a program on the system. +""" + +import os +import sys + +CMD = "docker system prune -a --volumes -f" + + +def main() -> int: + """Prints the paths where the program name could be found.""" + return os.system(CMD) + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/src/zcmds/version.py b/src/zcmds/version.py index f89d468..61a1020 100644 --- a/src/zcmds/version.py +++ b/src/zcmds/version.py @@ -1,5 +1,5 @@ """Just holds the version for the app""" # Also change version in pyproject.toml -VERSION = "1.5.4" # pylint: disable=R0801 +VERSION = "1.5.5" # pylint: disable=R0801 __version__ = VERSION