-
Notifications
You must be signed in to change notification settings - Fork 16
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
Design question: Fit and purpose of u
and r
commands in REPL
#35
Comments
i appreciate that maiden splits off meta-commands with a semicolon, ie agreed that there's no need for a default not sure what you mean by extra args. i wouldn't ever expect there to be more args than a single file path (sorry, i haven't kept up closely with druid--- so many fires) |
I think it's more that it doesn't really make sense to me to do stuff like uploading a file from the filesystem in an interactive session/REPL. |
the docs explain the setup--- i think it makes sense. editor side-by-side with druid. during development you'll want to live-query via the REPL for debugging. and upload to get your thing working. i actually have no idea how you're successfully make a script otherwise. you'd need three windows--- one for just a script uploader? |
Ah, OK, like this you mean? https://monome.org/docs/crow/scripting/#stage-two-executing Personally now that #30 is merged I'd prefer to integrate it into my editor so the normal build commands upload to/run it on crow but that can be done later. This does mean that we then probably want some way of properly navigating the filesystem within druid. |
by navigating the file system i would be fine with just a quick meta command to print a list of the |
agree with @tehn that all that is needed for navigating the file system is a command to print a list of lua files in the current working folder. I don't think that there should be another method of navigating within druid. It is really easy to quickly it is already a lot for people to learn how to nav the command line using just my 2c. |
OK, thanks for the feedback/info. I totally missed the usecase of running druid side by side with an editor :) I'll create a follow-up issue for adding some form of directory browsing and will create a PR to remove the hardcoded "sketch.lua" stuff. |
We have two commands in the REPL that to me feel a bit off,
u
(upload) andr
(run).According to the help they operate on files and allow one to either run the contents of this file or write them to flash and then run them.
IMHO there are a couple of issues with these commands:
To me it feels like the command-line (or a GUI program for that matter) offers easy enough means to browse the filesystem and upload/run scripts so I'm not sure there's much benefit of including it in the REPL.
Now if we do want to keep this functionality there are some other issues:
sketch.lua
as path.druid/src/druid/repl.py
Line 55 in 079c922
druid/src/druid/repl.py
Line 59 in 079c922
@trentgill @tehn What do you think?
The text was updated successfully, but these errors were encountered: