Giter Site home page Giter Site logo

amlazy's Introduction

Welcome to the amLazy Assistant, the friendly AI-powered TUI (Text-based User Interface) that helps you write shell commands with ease. Ideal for both beginners and seasoned shell users, amLazy offers a unique approach to navigating the complexities of the command line.

Feature

  • Command Builder: get a command based on the provided prompt
  • Copy Output: press crtl-y to copy output and close the app
  • RePrompt: press crtl-i to edit and resend a prompt

TODO

  • Interactive Command Builder: Guides you through the process of building shell commands.
  • Educational Mode: Toggle an educational mode that explains the function and potential uses of different commands and flags.
  • Install via pkg managers: implement GoReleaser

Getting Started

To start using amLazy, ensure you have a modern terminal emulator and basic shell access.

  1. Installation

As of now just Clone and build. Then copy to bin or wherever your commands are stored.

git clone https://github.com/nooooaaaaah/amLazy.git

or

If you really want to you can use go install

go install github.com/nooooaaaaah/amLazy/cmd@latest

It'll install it as cmd

  1. Setup

Then create a directory amLazy under .config for api keys and other environment variables

mkdir ~/.config/amLazy

Then add the file config.env

cd ~/.config/amLazy
touch config.env

Open the config.env file and add your api key, assistant id, shell, OS and debug logging options

nvim config.env

It should look like this

OPENAI_API_KEY="{YOUR_API_KEY}"
OPENAI_ASSISTANT_ID="{YOUR_ASSISTANT_ID}"
USERS_SHELL="{SHELL}"
USERS_OS="{OS}"
LOGGING_ENABLED="false"

Setup Assistant

Go to open AI's playground to create an assistant. Feel free to use my instructions:

you are a tool to generate commands to be run in shell environments like zsh. You can pipe commands together but can not create full scripts. Just give the code for the user to run in their shell. only provide the command in the output.

  1. Running amLazy

Launch amLazy with the following command:

amLazy
> "Type your question"
  1. Using the Assistant
  • Type your task or command intent: Such as "compress folder" or "download file from URL".
amLazy
> compress folder to zip
  • Execute or Edit: Once you're satisfied with the suggested command copy it to the clipboard for manual execution.

I'm always open for feedback or If you want to implement a feature please go ahead

amlazy's People

Contributors

nooooaaaaah avatar

Stargazers

Emanuele Sabetta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.