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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuke-2.6.1.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for nuke-2.6.1.tar.gz
Algorithm Hash digest
SHA256 6bd9ab084ee711ffe3b09a50459fbf3486f9db167b7e83bb8298164d07ce9ac4
MD5 bddb19f93300945d075a36c0f09c8e24
BLAKE2b-256 6707455d419662e4e0531ef92f57fe4fe6bd8105e2e1bf610412255f5c938984

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuke-2.6.1-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for nuke-2.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d152c09056da21767a7242445f465ea25c2332da0a54a7cbca24b45a7f0d6a72
MD5 e21c9937610db4add6ccd8e961d2053c
BLAKE2b-256 1f11283cd6d62d942a8c4cf5ff8e95c258e54e6399eabd92a0c2e5f3696011c7

See more details on using hashes here.

Supported by

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