LFG, It Really Whips the Llama's Ass 🦙🦙🦙🦙
Project description
LFG, It Really Whips the Llama's Ass 🦙🦙🦙🦙
LFG is a command-line tool that intelligently helps you find the right terminal commands for your tasks. Such sales pitch. This interface is using GPT-4o as an engine.
What?
- I do not like the syntax of the Github Copilot command-line
- Quicker than using Gemini/ChatGPT/Google directly via the browser interface
- Easier to find what needed without opening man pages
- NEW: Changing to GPT-4o model which is free
- NEW: Execute the command directly from this CLI
However, never trust the output entirely.
Installation
# install pipx
brew install pipx
# add pipx binaries to path
pipx ensurepath
# restart your terminal
# install LFG
pipx install lfg-llama
Usage
This executable is using OpenAI, that means you need and API token.
GPT-4o is free to use.
Add the token to your .bashrc/.zshrc and reload your terminal.
export OPENAI_API_KEY={replace_me}
You can use either of these commands
$ lfg <query>
$ ask <query>
Now you can use the executable
$ ask kill port 3000
fuser -k 3000/tcp
Explanation:
The `fuser` command identifies processes using files or sockets. The `-k` option is used to kill th
ose processes. Here, `3000/tcp` specifies the TCP port number 3000. This command effectively kills
any process currently using port 3000.
> Execute the command? (N/y):
Change the LLM
$ ask get pods from all namespaces
kubectl get pods --all-namespaces
Explanation:
The `kubectl get pods --all-namespaces` command lists all the pods across all namespaces in a Kuber
netes cluster. The `--all-namespaces` flag is used to fetch the pods from every namespace instead of the default namespace.
> Execute the command? (N/y):
Development
pip install --user pipenv
pipenv --python 3.11
pipenv install
pipenv run lfg kill port 3000
TODO
- Fix the setup and pyproject file, including github workflow for releasing the package
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
lfg_llama-2.3.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for lfg_llama-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa627e513d9d3f51e6c9b45b7b88dd9e1dd540d24b2b4bc06e3e07dd065241f4 |
|
MD5 | 51f5f842bc59711982dd62f424faf390 |
|
BLAKE2b-256 | 72c2b3676c71a57fce4ee2f11d69b41f3013fa783f2f603dd9b4b36908560954 |