microshell is a free Golang implementation of the interactive RouterOS Shell basing on which you can create a powerfull shell for your own purposes
Autocomplete
Calculation
Variables
Scopes
Functions
See the LICENSE file for license rights and limitations (MIT).