refactor(nodetool): only add libs when necessary
This commit is contained in:
parent
c0ebaf9b6f
commit
ad09ca9d6d
|
@ -21,12 +21,13 @@ main(Args) ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
ok = add_libs_dir(),
|
|
||||||
case Args of
|
case Args of
|
||||||
["hocon" | Rest] ->
|
["hocon" | Rest] ->
|
||||||
|
ok = add_libs_dir(),
|
||||||
%% forward the call to hocon_cli
|
%% forward the call to hocon_cli
|
||||||
hocon_cli:main(Rest);
|
hocon_cli:main(Rest);
|
||||||
["check_license_key", Key0] ->
|
["check_license_key", Key0] ->
|
||||||
|
ok = add_libs_dir(),
|
||||||
Key = cleanup_key(Key0),
|
Key = cleanup_key(Key0),
|
||||||
check_license(#{key => Key});
|
check_license(#{key => Key});
|
||||||
_ ->
|
_ ->
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Improve `emqx` command performance.
|
||||||
|
|
||||||
|
Avoid loading EMQX application code in `nodetool` script unless necessary.
|
Loading…
Reference in New Issue