askcommand

Crates.ioaskcommand
lib.rsaskcommand
version0.1.0
sourcesrc
created_at2023-12-13 03:42:11.730906
updated_at2023-12-13 03:42:11.730906
descriptionA command-line tool to generate Linux commands using OpenAI's GPT-4
homepage
repositoryhttps://github.com/ryankopf/askcommand
max_upload_size
id1067646
size48,836
Ryan Kopf (ryankopf)

documentation

https://github.com/ryankopf/askcommand

README

Async OpenAI Linux Command Generator

Overview

This Rust application utilizes the async_openai crate to interact with OpenAI's GPT-4 model. It generates Linux command line commands based on user inputs.

Getting Started

Prerequisites

  • Rust programming environment
  • async_openai crate

Installation

  1. Clone the repository.
  2. Navigate to the project directory.
  3. Run cargo build to compile the project.

Usage

Install the application with a query to generate Linux commands:

git clone https://github.com/ryankopf/askcommand.git
cd askcommand
cargo build --release
sudo mv target/release/askcommand /usr/local/bin/ask

Features

  • Generates Linux commands using OpenAI's GPT-4 model.
  • Handles user inputs through command line arguments.

Contributing

Contributions are welcome. Please open an issue first to discuss what you would like to change.

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments

  • OpenAI for providing the GPT-4 API
  • Rust community for development support
Commit count: 6

cargo fmt