Code Monkey home page Code Monkey logo

commander's Introduction

Commander

Commander Cli

Commander is a simple CLI designed to provide copilot suggestions for command-line operations. It streamlines the process of generating command suggestions in your terminal based on the query you provide.

Commander is built to use Ollama and is designed to run all queries locally not requiring any external API calls.

The only model currently supported is Llama3 due to its higher performance with code completion tasks.

Prerequisites

Before you begin, ensure you have the following installed on your system:

  • Go (version 1.22 or higher)
  • Ollama installed and configured locally, click here for details
  • Llama3 must be pulled and running in Ollama before using Commander. To pull Llama3, run the following command:
    ollama pull llama3

Installation

There are two main ways to install Commander: running from source or installing it globally using Go's toolchain.

Option 1: Running from Source

This method is ideal if you plan to modify the source code or prefer to run the latest version directly.

  1. Clone the Repository
git clone https://github.com/cdpierse/commander.git
cd commander
  1. Build and Run

    Use the Go toolchain to build and run the application directly:

    go run main.go -q "your query"

    For example:

    go run main.go -q "delete all pods in kubernetes in the api namespace"

Option 2: Installing Globally

If you prefer to install Commander globally:

  1. Clone the Repository

    git clone https://github.com/cdpierse/commander.git
    cd commander
  2. Install the Binary

    Use Go's native installation command to compile and place the binary in your GOPATH/bin, which should be in your PATH if your Go environment is set up correctly:

    go install .
  3. Run Commander

    Now, you can run Commander from anywhere using the command:

    commander -q "your query"

    For example:

    commander -q "install numpy with pip"

Usage

To get command line suggestions, use the following syntax:

commander -q "your query here"

Replace "your query here" with the actual command you need assistance with.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to improve the documentation or functionality of Commander.

commander's People

Contributors

cdpierse 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.