multimod

command module
v0.0.0-...-6b2b121 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

multimod provides a means of running commands across multiple modules in a a single repository. It operates by scanning the filesystem for all directories that contain a go.mod file (including 'sub-modules'). It can then perform a set of 'actions' in each of these directories in turn. The available actions are specified in a yaml config file and consist of a list of commands to be executed in each directory. For example, the 'lint' action will run the following command in each module directory.

lint: ["golangci-lint", "run", "./..."]

Note that that ';' can be used as a command separator to specify multiple commands to be run, as in:

update: ["go", "get", "-u", "./...", ";", "go", "mod", "tidy"]

Jump to

Keyboard shortcuts

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