Skip to content

Add command execution utility#19

Open
dexterbg wants to merge 3 commits intobirkir:masterfrom
openvehicles:master
Open

Add command execution utility#19
dexterbg wants to merge 3 commits intobirkir:masterfrom
openvehicles:master

Conversation

@dexterbg
Copy link
Copy Markdown

@dexterbg dexterbg commented Nov 4, 2023

Meant to simplify using the lib for standard users / scripting / home automation applications. OVMS manual page covering this and general command execution APIs is in the work.

Regards,
Michael

@birkir
Copy link
Copy Markdown
Owner

birkir commented Nov 6, 2023

Thats great, It would be way more beneficial if we can add it to package.json/bin so its executable.
Here is the checklist: https://gist.github.com/mritzco/4495cf5fa863779ed1ac0e4edf9a1ed0

# package.json
{
  "bin": "./bin/ovms.js"
}

And if we allow input arguments also, we could simply do:

npx ovms-client -h localhost -vid DEMO -p DEMO stat

Would you rather merge this now and open another one later for this, or complete the task in this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants