Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command execution utility #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dexterbg
Copy link

@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
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