api: Make api/ a module that will contain proto-definitions.

The module is supposed to contain minimal set of files that establish
public etcd server API. In particular client libraries for etcd built in
different languages might want to depend on this file.
This commit is contained in:
Piotr Tabor
2020-10-06 09:59:04 +02:00
parent 389642dd16
commit 2edb08642c
3 changed files with 138 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ function run_for_module {
function run_for_modules {
local pkg="${PKG:-./...}"
if [ -z "${USERMOD}" ]; then
run_for_module "api" "$@" "${pkg}" || return "$?"
run_for_module "." "$@" "${pkg}" || return "$?"
else
run_for_module "${USERMOD}" "$@" "${pkg}" || return "$?"