minop

command module
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: GPL-3.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Config File

Create a file named minop.yaml in YAML format. This file contains both hosts and tasks.

Hosts Section

The file should contain groups of hosts under the hosts key, where each group is a list of host strings in the format <user>:<password>@<address>:<port>. Example:

hosts:
  all:
    - 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.

Tasks Section

Add your tasks under the tasks key:

tasks:
  - 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

Execute Tasks

Run the following command to execute tasks on the remote hosts:

minop

This will load ./minop.yaml by default. You can specify a different config file:

minop -c /path/to/config.yaml

Interactive CLI

Start an interactive CLI mode to execute commands on remote hosts:

minop cli

You can also specify a different config file:

minop cli -c /path/to/config.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