Giter Club home page Giter Club logo

encode_queue's Introduction

Encode Queue

Version: 1.0
Author: Brian Summerfield

Overview

Encode Queue is a command-line tool that manages a queue of shell commands, particularly useful for sequentially encoding files. The queue operates by reading and executing commands from the first line of a file, removing the line once the command is executed. This allows you to continue adding or editing commands even while the queue is processing. It runs as a single task, making it easy to suspend and resume as needed.

Features

  • Add Commands: Add shell commands to the queue.
  • Start Queue Processing: Execute the commands in the queue sequentially.
  • List Commands: View all commands currently in the queue.
  • Edit Queue: Open the queue in your preferred text editor to manually modify the commands.

Requirements

  • Rust: You need to have Rust installed on your system to build and run this project.
  • Fish Shell: The commands in the queue are executed using the Fish shell.

Installation

  1. Clone the repository:

    git clone https://github.com/BJSummerfield/encode_queue.git
    cd encode_queue
  2. Build the project:

    cargo build --release
  3. Run the executable:

    ./target/release/encode_queue

Usage

After building the project, you can use the encode_queue command with the following options:

Add a Command to the Queue

encode_queue add "your_command_here"

Example:

encode_queue add "ffmpeg -i input.mp4 -c:v libx264 output.mp4"

Start Processing the Queue

encode_queue start

This will execute all commands in the queue sequentially, removing each command from the file after it is executed.

List All Commands in the Queue

encode_queue ls

This will display all commands currently in the queue.

Edit the Queue

encode_queue edit

This will open the queue file in your default editor (as specified by the EDITOR environment variable).

Configuration

The queue of commands is stored in a text file located at:

~/.config/encode_queue/commands.txt

You can change the default editor by setting the EDITOR environment variable:

export EDITOR=nvim

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

If you have any questions, feel free to reach out to me at [email protected].

encode_queue's People

Contributors

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