minop

command module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

README

MINOP

A simple tool for remote task orchestration and batch execution.

English · 简体中文

Action Status Codecov Go Report Card Go Reference Git tag Go Version


Installation

Install from Source

To install minop from source, ensure you have Go installed and run:

go install github.com/cqroot/minop@latest

Download Pre-compiled Binaries

Download the binary for your platform from the releases page and add its directory to your system's PATH.

Usage

Create the Hosts File

Create a file named hosts. Each line in this file should represent a remote host in the format <user>:<password>@<address>:<port>. Example:

root:asdf@127.0.0.1:8001

[main]
root:asdf@127.0.0.1:8002
root:asdf@127.0.0.1:8003

Hosts listed under a specific section header (like [main] in the example) will be assigned to that role.

Interactive CLI

Running the tool directly will load the hosts file from the current directory and start an interactive CLI. Here, you can execute commands you wish to run on the remote hosts.

minop

Execute Task Files

To execute predefined tasks non-interactively, first create a YAML file, for example minop.yaml:

- name: Copy file to /root on the remote host
  copy: test.txt
  to: /root/test.txt

- name: Copy dir to /root on the remote host
  copy: testdir
  to: /root/testdir

- name: List /root
  shell: ls /root

Then, run the following command to load the hosts file and the minop.yaml file from the current directory, executing the orchestrated tasks on the remote hosts:

minop -t minop.yaml

Contributing

Contributions are welcome! Feel free to open an issue to report bugs, suggest new features, or submit a pull request.

License

This project is open source, licensed under the GPL-3.0 License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL