Skip to main content

Command line tool to nuke 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 versions 2.7, 3.5 & 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 :code: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 :code: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.4.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

nuke-2.4.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: nuke-2.4.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for nuke-2.4.0.tar.gz
Algorithm Hash digest
SHA256 ebe3944f9192261fad9991b4ad007f7aa9295d7bab6342ecb0b04ae461ab06a1
MD5 a6670717b8d5b37e508fe63c3372d9b6
BLAKE2b-256 a49a7f554129495255db3ee48f9a1ab8785afaa78da7ffe97911b3ab5ee04f7a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuke-2.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for nuke-2.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 34c5aa21ce2775a0b92eb9ff0810baa598858d32b9067dd8bbfb293151837374
MD5 d26a37477b18e3cf99d52952dc8df97a
BLAKE2b-256 0da4337462c8b484f88d48e978e7e4b6bcbe12777b695dc99f2189b36c427d57

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