Skip to main content

Command line tool for nuking a directory 💥

Project description

Nuke

version license wheel python Build Status say-thanks

Command line tool for nuking a directory 💥.

Installation

Installing nuke is intended to be super easy. The only dependency is a supported Python interpreter. You can get nuke via pip:

$ pip install nuke

nuke is supported for Python 3.6+.

Usage

The most common usage of nuke is when you wish to recreate a build directory for a build program such as CMake.

To use nuke, you just call nuke from the command line and specify the directory you wish to nuke:

$ nuke path/to/directory

If you are already in the directory you wish to nuke, you don't need to exit the directory. Calling nuke without any arguments will nuke the current directory:

$ nuke  # same as "nuke ."

Since nuking is a dangerous operation and you don't want to inadvertently delete something important, nuke always asks you to confirm the nuking of a directory. If you wish to override this since you know what you are doing or you wish to use nuke in a shell script, you can pass in the -y flag:

$ nuke -y /path/to/dir/

You can also specify a .nukeignore file inside the directory to be nuked. This works similar to the .gitignore file. Every file that matches a pattern in the .nukeignore is ignored and spared from a gruesome fate of its eligible siblings.

For example:

*.py

will result in all .py files not being nuked.

Suppose you just want to see what files will be nuked without actually deleting them, you can then run nuke -l /path/to/dir, and this will print out the directory tree of all the files that will be nuked.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nuke-2.5.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

nuke-2.5.0-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nuke-2.5.0.tar.gz.

File metadata

  • Download URL: nuke-2.5.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for nuke-2.5.0.tar.gz
Algorithm Hash digest
SHA256 a2499746b681e415faab2f58595ce0182ae2f93542a684ecc56570ae431a000d
MD5 e057de8ce0e534e6af4653ed39421278
BLAKE2b-256 4456d1cb7c6ff13c327f22425f9eb2f405587610590e75d786e5aef0a909a078

See more details on using hashes here.

File details

Details for the file nuke-2.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nuke-2.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for nuke-2.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 43d3d60d0295d4d8b03aad892bc8e8024d1298e63b0b3eef8eb1a0318d8545ef
MD5 2be9760197db40fa9da24cdb08154ce7
BLAKE2b-256 96797639ee121556a69ebe45a9018a4d41769593eff015a03aba0f307d3b1fb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page