Skip to main content

Universal command wrapper package that dispatches to /usr/local/bin/ngenctl-* scripts

Project description

ngectl

GitHub PyPI

Universal command wrapper package that dispatches to /usr/local/bin/ngectl-* scripts.

Installation

Install from PyPI:

pip install ngectl

Or install from source:

pip install .

Note: Installation to /usr/local/bin requires sudo/root permissions. The package will automatically install bundled scripts to /usr/local/bin/ngectl-* during installation.

Usage

The ngectl command dispatches to scripts located at /usr/local/bin/ngectl-{command}.

Format

  • Script location: /usr/local/bin/ngectl-{command}
  • Command usage: ngectl {command}

Examples

If you have a script at /usr/local/bin/ngectl-rancher, you can use it as:

ngectl rancher --help
ngectl rancher version

If you have a script at /usr/local/bin/ngectl-git, you can use it as:

ngectl git clone https://github.com/user/repo.git
ngectl git status

How It Works

  1. When you run ngectl {command}, the CLI dispatcher looks for a script at /usr/local/bin/ngectl-{command}
  2. If found, it executes the script with any additional arguments passed
  3. The script can be any executable file (bash, sh, Python, or binary)

Adding New Commands

To add a new command:

  1. Place a script at /usr/local/bin/ngectl-{your-command}
  2. Make sure it's executable: chmod +x /usr/local/bin/ngectl-{your-command}
  3. Use it with: ngectl {your-command}

Development

Building the Package

python -m build

Publishing to PyPI

Menggunakan script otomatis:

./publish.sh --test      # Publish ke Test PyPI
./publish.sh --publish   # Publish ke PyPI production

Atau manual:

python -m build
python -m twine check dist/*
python -m twine upload dist/*

Untuk panduan lengkap, lihat PUBLISH.md.

Repository

License

MIT

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

ngenctl-0.1.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

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

ngenctl-0.1.0-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

Details for the file ngenctl-0.1.0.tar.gz.

File metadata

  • Download URL: ngenctl-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ngenctl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4af6a008fb2df62343a64989797859b4cbd1bb2cbdb27c021042f45e94827fe8
MD5 eda20c958e76255df9fdbbb9b54805b5
BLAKE2b-256 acf58445e93712eaf735742ac1a9da98ea44e32a68dda128225cf1834fbcd0c1

See more details on using hashes here.

File details

Details for the file ngenctl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ngenctl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for ngenctl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee411b4eb53c9bc4da07ba3c4e94a3545c8ce0109a03aa8c100525591995c396
MD5 7376e80bb647cba4853c76a1d65cca07
BLAKE2b-256 903fed7b9b1b59abd5c847ed73e67690e730c5d44a01f0fb8906398c443ce01a

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