Categorygithub.com/efureev/parallel
repositorypackage
0.4.2
Repository: https://github.com/efureev/parallel.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Parallel

Go Coverage

Allows you to run several console commands in parallel and output its output in your term.

Install

go install github.com/efureev/parallel@latest

Run

If you have a flow-file .parallelrc.yaml in a folder of execution:

parallel

Of a flow-file has different destination:

parallel -f /...../app/flow.yaml

Screens

screen1.png sceen2.png screen3.png

Structure of FlowFile

Lang: yaml

commands: # list of parallel commands
  php serve: # name of a Command Chain
    artisan: # name of Command
      pipe: true  # listen stdOutput & stdErr for this command
      cmd: [ 'php', 'artisan', '--port', '8010' ] # One Command and its args 
      dir: 'app' # Directory of an execution

  nginx: # CMD mode
    nginxCmd:
      pipe: true
      cmd: [ 'docker', 'container', 'run',  '--rm', '-p', '8090:80', '--name', 'ngixn', 'nginx' ]
      format:
        cmdName: '%CMD_NAME% %CMD_ARGS%' # command name formatting

    nginxDocker:
      docker:
        image:
          name: 'nginx'
          # tag: 'v1', # default 'latest'
          # pull: 'always' # default: none
        ports: [
          '127.0.0.1:80:8080',
          '127.0.0.1:443:8443',
        ]
        # removeAfterAll: false # default: true
        # cmd: 'exec' # default: 'run'


  yarn dev:
    ls: # This command will be executed without Pipe
      cmd: [ 'ls', '-la' ]
    yarn:
      pipe: true
      cmd: [ 'yarn', 'dev' ]
      dir: 'app'

  net:
    ping:
      pipe: true
      cmd: [ 'ping', '-c', '3','ya.ru' ]