Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Menu querying

Latest
Compare
Choose a tag to compare
@aluisiora aluisiora released this 09 Mar 13:37
· 25 commits to development since this release

It is now possible to query for items to execute actions, such as:

client.menu("/ip address")
    .where("address", "192.168.88.15/24")
    .orWhere("address", "192.168.15.88/24")
    .remove();

It also works with update(), unset(), moveAbove(), unset(), disable() and enable() functions.

client.menu("/ip address")
    .where("address", "192.168.88.15/24")
    .orWhere("address", "192.168.15.88/24")
    .update({ comment: "Admin Network" });

Note: moveAbove() is exclusive to this feature, to use internal ids or numbers, use the move() method.