gotask

command module
v0.0.0-...-e2275b5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 11 Imported by: 0

README

GoTask

Parallel task automation using Go

Installation

First, make sure you have access to GitHub. Then follow the following steps to install GoTask

  1. install Google's Go https://golang.ir/dl
  2. git clone https://github.com/yuhangwang/gotask
  3. cd gotask
  4. go install

Usage

The gotask command takes at least two arguments, i.e., the command-line command to be executed and a yaml file containing a list of command-line arguments to be given to the command-line command. gotask will execute the command in parallel and give each command one of the command-line arguments in args.yml. The default number of executing threads equals to the number of virtual CPU cores. It can be changed by setting the environmental variable GTPAR.

gotask [command] [args.yml]

Example

gotask sleep args.yml

The content of the args.yml file is listed below.

- 3
- 3
- 3

The effect is that gotask will execute sleep 3 command three times in parallel.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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