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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hexagon-0.64.3.tar.gz.
File metadata
- Download URL: hexagon-0.64.3.tar.gz
- Upload date:
- Size: 98.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4ff8d5ad6eaa579ed4fbd8b3628bb61845219b88928fff1d68210708e5a1588
|
|
| MD5 |
e84b1665b76dcc4a0d9d61124aea8606
|
|
| BLAKE2b-256 |
0b4dd5e67d2afe86c8cba16ba8feb29c7da8cd06ab94b402e5dcc0ff898ef196
|
Provenance
The following attestation bundles were made for hexagon-0.64.3.tar.gz:
Publisher:
01-python-package.yml on lt-mayonesa/hexagon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hexagon-0.64.3.tar.gz -
Subject digest:
e4ff8d5ad6eaa579ed4fbd8b3628bb61845219b88928fff1d68210708e5a1588 - Sigstore transparency entry: 804567641
- Sigstore integration time:
-
Permalink:
lt-mayonesa/hexagon@467042dc9912fc684ff7eeeace5aa373f66b12f3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lt-mayonesa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
01-python-package.yml@467042dc9912fc684ff7eeeace5aa373f66b12f3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hexagon-0.64.3-py3-none-any.whl.
File metadata
- Download URL: hexagon-0.64.3-py3-none-any.whl
- Upload date:
- Size: 84.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7649813ead17736765ae27bbb5605f3a87df60ed6475676a11f68d84fd5a4f7f
|
|
| MD5 |
278a4f430c7d8b3e7463abbed192dc82
|
|
| BLAKE2b-256 |
16d430869824b8aaee768d84f0fb1f406541fe4baff503b6861adeef90a0c9c9
|
Provenance
The following attestation bundles were made for hexagon-0.64.3-py3-none-any.whl:
Publisher:
01-python-package.yml on lt-mayonesa/hexagon
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hexagon-0.64.3-py3-none-any.whl -
Subject digest:
7649813ead17736765ae27bbb5605f3a87df60ed6475676a11f68d84fd5a4f7f - Sigstore transparency entry: 804567642
- Sigstore integration time:
-
Permalink:
lt-mayonesa/hexagon@467042dc9912fc684ff7eeeace5aa373f66b12f3 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/lt-mayonesa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
01-python-package.yml@467042dc9912fc684ff7eeeace5aa373f66b12f3 -
Trigger Event:
push
-
Statement type: