Skip to main content

nex-cls

Project-agnostic artifact ignore tool — scan, select, gitignore.

nex-cls is a standalone CLI that helps you keep junk out of any git repository. Run it in any project, browse the markdown files and folders, pick what you want ignored, and it appends the right root-anchored patterns to .gitignore.

It never deletes or modifies any file — it only writes to .gitignore.

Install

pip install nex-cls

Usage

cd ~/any/project
nex-cls                 # interactive browser
nex-cls --dry-run       # preview only, no changes
nex-cls --auto          # ignore all root-level .md files, keep folders
nex-cls --wildcard      # use /*.md instead of individual entries
nex-cls --path DIR      # scan a specific directory

Interactive browser

┌───────────────────────────────────────────────┐
│ nex-cls — select artifacts to ignore          │
│   myproject/                                  │
│   [x] Research.md                             │
│   [ ] docs/  (2 .md)   [enter → open]         │
│   [x] work.md                                 │
└───────────────────────────────────────────────┘
  ↑/↓ move · space toggle · enter open folder · ← back · tab done · q quit
  • Root-level .md files are listed individually (pre-selected).
  • Folders containing .md files are shown as one entry (default keep) — press Enter to open them and select individual files or subfolders.
  • Selection persists across navigation — opening/leaving folders never unselects anything.
  • Press Tab to finish, then confirm the preview.

What gets written

Patterns are root-anchored so only the exact things you chose are ignored:

/Research.md
/notes/scratch.md
/SPEC/            # whole folder, chosen by you

Features

  • Project-agnostic — works in any directory, no assumptions about your stack
  • Never deletes or moves files — .gitignore only
  • Interactive checkbox + folder browser
  • Idempotent — re-running never duplicates entries
  • Dry-run preview and --auto mode for scripts
  • Skips node_modules, hidden dirs, and other junk automatically

License

MIT

Download files

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

Source Distribution

nex_cls-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

nex_cls-1.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file nex_cls-1.0.0.tar.gz.

File metadata

  • Download URL: nex_cls-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nex_cls-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a28c740b8286a2979fa60bd9136cc3f5d4a1a1210ad82efe9a74b5a425d0c47d
MD5 5590e3720ed28ff15367d49f46b12f69
BLAKE2b-256 0b9ae6bad1c8218c12caa078c9d9a9f1276664f2d01ad9abd46630f8b914fa5a

See more details on using hashes here.

File details

Details for the file nex_cls-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nex_cls-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nex_cls-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54d49b61bbf0a15828c124751b70a02fcfbe426d27951a03b0238f058460ff48
MD5 8063b07f652e12dde765837d80511c53
BLAKE2b-256 be5ce660dfaac00cdf0461556c532a672b5c6ec72e2e25e3add4bb2af88c20e5

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 Sentry Error logging StatusPage Status page