feat(bpapi): Add a header to bpapi.versions file

This commit is contained in:
ieQu1 2022-07-01 09:50:04 +02:00
parent 2f7078f314
commit e2c2f7b224
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
%% This file is automatically generated by `make static_checks`, do not edit.
{emqx,1}. {emqx,1}.
{emqx_authn,1}. {emqx_authn,1}.
{emqx_authz,1}. {emqx_authz,1}.

View File

@ -300,6 +300,9 @@ dump_versions(APIs) ->
logger:notice("Dumping API versions to ~p", [Filename]), logger:notice("Dumping API versions to ~p", [Filename]),
ok = filelib:ensure_dir(Filename), ok = filelib:ensure_dir(Filename),
{ok, FD} = file:open(Filename, [write]), {ok, FD} = file:open(Filename, [write]),
io:format(
FD, "%% This file is automatically generated by `make static_checks`, do not edit.~n", []
),
lists:foreach( lists:foreach(
fun(API) -> fun(API) ->
ok = io:format(FD, "~p.~n", [API]) ok = io:format(FD, "~p.~n", [API])