Skip to main content

Build your Team's CLI

Project description

hexagon

Make your team's knowledge truly accessible, truly shared, and truly empowering by creating your own CLI.

01_ci-cd Code style: black PyPI - Version PyPI - Python Version PyPI - License PyPI - Downloads

hexagon setup example


Getting Started

Install hexagon

pipx install hexagon

Create your teams CLI

Either use our template repo or create a YAML like the following

cli:
  custom_tools_dir: .  # relative to this file
  name: Test CLI
  command: tc

envs:
  - name: dev
    alias: d
  - name: qa
    alias: q

tools:

  - name: google
    alias: g
    long_name: Google
    description: Open google
    type: web
    envs:
      dev: google.dev
      qa: google.qa
    action: open_link

  - name: hello-world
    alias: hw
    long_name: Greet the world
    type: shell
    action: echo "Hello World!"

Install the CLI

Run hexagon and select the CLI installation tool

Options

Theming

Hexagon supports 3 themes for now:

  • default (some nice colors and decorations)
  • disabled (no colors and no decorations)
  • result_only (with colors but only shows the result logs)

This can be specified by the envvar HEXAGON_THEME, i.e.,

# assuming you installed a CLI with command tc
HEXAGON_THEME=result_only tc

Development

Pre-requisites

pip install pipenv

Run:

# start a shell
pipenv shell
# install hexagon dependencies
pipenv install --dev
# run it
python -m hexagon

Unit Tests:

pytest -svv tests/

E2E Tests:

# first generate the transalation files
.github/scripts/i18n/build.sh
# run tests
pytest -svv tests_e2e/

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

hexagon-0.65.3.tar.gz (105.1 kB view details)

Uploaded Source

Built Distribution

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

hexagon-0.65.3-py3-none-any.whl (88.8 kB view details)

Uploaded Python 3

File details

Details for the file hexagon-0.65.3.tar.gz.

File metadata

  • Download URL: hexagon-0.65.3.tar.gz
  • Upload date:
  • Size: 105.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hexagon-0.65.3.tar.gz
Algorithm Hash digest
SHA256 d3fc038fdcade4db152226b8e1b708ede9aac4cb46f1255289edfa9e1be98f72
MD5 aaee7e626f46a08de0b25d6a181c19e4
BLAKE2b-256 5c8748ef62a9c94fb2c495750e0f163e92e2355da284e609b8be67bf0a3f5360

See more details on using hashes here.

Provenance

The following attestation bundles were made for hexagon-0.65.3.tar.gz:

Publisher: 01-python-package.yml on lt-mayonesa/hexagon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hexagon-0.65.3-py3-none-any.whl.

File metadata

  • Download URL: hexagon-0.65.3-py3-none-any.whl
  • Upload date:
  • Size: 88.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for hexagon-0.65.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b501be3ca5c97406b2e9cde5d477e7440ec55bafee1af6fa1a7db9f58e2561cc
MD5 8036f93b59dbf3a72f5d6f2d3245f1c7
BLAKE2b-256 0ed73ad9b4a51457fb55ffaa84a47792b71f79991bb68a826aec5dad7fe9824f

See more details on using hashes here.

Provenance

The following attestation bundles were made for hexagon-0.65.3-py3-none-any.whl:

Publisher: 01-python-package.yml on lt-mayonesa/hexagon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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