Skip to main content

Command line tool for nuking a directory 💥

Project description

Nuke

version license wheel python CI

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.7+.

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.4.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

nuke-2.5.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuke-2.5.4.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for nuke-2.5.4.tar.gz
Algorithm Hash digest
SHA256 1906013309e3a9d9082ed2d3c31f84138f02f2189dac27eb80e472162283a108
MD5 e37acfe1c86dd98719ce24e70f42fb92
BLAKE2b-256 8aea07b52f917de5c60c5069644000e91eedf7bff7a5f991555364880b2f56e2

See more details on using hashes here.

File details

Details for the file nuke-2.5.4-py3-none-any.whl.

File metadata

  • Download URL: nuke-2.5.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for nuke-2.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6973681243e08e24ad9ab365d043682339aca69e15de074a0057eb7e8159c0b8
MD5 a01a2b93019ab8203583bf0ea2b8b95e
BLAKE2b-256 d81374e2f16950bf5bdc21a7ad19b967a303bb484d2408342150a171cb7a3eb5

See more details on using hashes here.

Supported by

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