-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CodiMD command line interface #808
Comments
UPDATE: a cli exists now, see codimd-cli Some PRs/Issues that may benefit from a command line interface:
Permissions:
Sync backends:
Hopefully a CLI will have the effect of drawing some of the complexity of these feature requests out of the node server and into external scripts, allowing the node server to maintain a small API surface area. |
Nice work! I would also use For most stuff it would be nice to simply expose a I don't know when I'll find the time to do this, but I really like to see some progress here 👍 (This is just a quick review, will add some more details later :)) |
while we're at it: this could be a |
@ccoenen as it stands the only cli dependency is wget, and even that could be removed, is a separate package really needed? |
Depends on how you look at it. If this is something solely for the admins: no, it should stay in here. On a different matter (but also somewhat depending on the question above), I would like this to be JavaScript instead of bash. For one thing, if it is used by end-users it will be used by a lot of people running windows. Also, I believe nobody will argue that JavaScript is a more expressive language and it is a language very familiar to the HackMD Community, so it would help maintainability. |
Sorry, ignore the close and reopen, that was an accident. I don't know if I have the time to re-write this in JS at the moment, but maybe in a few months if someone else doesn't do it before me. For now the bash version is fulfilling all my needs. |
This is the one thing that I need to really incorporate hackmd use into my workflow. |
Mhm, I'm still not sure where we want to put this. An own repo makes sense, but only when the tool is written in something else than 10 lines of bash. If someone wants to rewrite this (in go or rust or JS) I'll provide a repository for sure. I know that I don't have the time to do this right now :/ but would be awesome! |
I think the proposed featureset and terminology is spot on. As mentioned before, bash isn't my first choice, but it's better than "oh wait having this in XYZ would be awesome, one day". So in my opinion: I opened a repo and added @pirate to the contributors. The repo is named |
Thanks for creating that repo @ccoenen. I have pushed the script along with some documentation: https://github.com/hackmdio/codimd-cli Let me know if any of you have suggestions/content improvements for the script by using the issue tracker over on on that repo. |
Thank you :-) I'll close this ticket here, then. Everyone: feel free to chime in over at the other repo as well :-) |
…-4.x Update dependency webpack to v4.46.0 (master)
UPDATE: this exists now, see codimd-cli
I propose we create an official CLI to interact with the hackmd server. It will allow people to build tons of other integrations, and script common workflows to their liking, hopefully providing an easy solution to a handful of open PRs in the process.
Examples of stuff that could be built on top of this command:
./hackmd [import|export|publish] ...
:The text was updated successfully, but these errors were encountered: