Smart CLI tool for shell template
Project description
glow
The glow command line interface.
________ ____ _ __
/ ____/ / / __ \ | / /
/ / __/ / / / / / | /| / /
/ /_/ / /___/ /_/ /| |/ |/ /
\____/_____/\____/ |__/|__/
____________________________
__________________________________
________________________________________
📦 Installation
pip install glow-cli
You can set up configuration in ~/.glow/commands/<task>.yml
🚀 Usage
g list
🦋 Templating
Say you set up a config at "./commands/pod-shell.yml"
description: |
Entering the shell of the 1st pod that matches the keyword
command: |
kubectl exec -it $(kubectl get pods | grep { kw } | head -n 1 | awk '{print $1}') -- /bin/bash
inputs:
kw:
description: keyword to match
type: str
you can run the command with:
g ./commands/pod-shell.yml --kw "app1"
Or you can store the configuration by
g install ./commands/pod-shell.yml
Then you can run the command with:
g pod-shell --kw "app1"
🦙 LLM in CLI 💻
Why memorize commands when you can just ask?
You can setup the environment variables in the following file: eg, with OPENAI_API_KEY
:
~/.glow/.env
Then you can try:
g code "redub a.mp4 file with b.mp3, save to c.mp4 with fps 12"
Or you can ask things in general:
g llm "explain btree to me"
Or with certain flavor to the robot role
g llm "explain btree to me" "you are a poet return everything in homer style"
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
glow-cli-0.1.2.tar.gz
(11.1 kB
view details)
Built Distribution
glow_cli-0.1.2-py3-none-any.whl
(13.2 kB
view details)
File details
Details for the file glow-cli-0.1.2.tar.gz
.
File metadata
- Download URL: glow-cli-0.1.2.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e698cd2ba381a117130233d65a9d0278ff1609b389983a4efb9e9c7a19c77633 |
|
MD5 | 60040e201229b8960b170a3298b2070c |
|
BLAKE2b-256 | 767de0dcc88ef81eee3e58104b605b6e2172a978a41780161c9b83b87835c637 |
Provenance
File details
Details for the file glow_cli-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: glow_cli-0.1.2-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334fd6f42675b1b28b77943ed3cbe055ebdfc8fa26df79b3729d3fb0caaad033 |
|
MD5 | ae57fc8b006ec7e1cf62211faf8aa4d3 |
|
BLAKE2b-256 | 50bc0d9c386e76772b409a12f26bf3b3d0315b09fdd63a4177b31f5f6186fc4b |