wyeworks / elixir_console Goto Github PK
View Code? Open in Web Editor NEWElixir Web Console
Home Page: https://elixirconsole.wyeworks.com/
License: MIT License
Elixir Web Console
Home Page: https://elixirconsole.wyeworks.com/
License: MIT License
I can run unsafe commands like File.write!/2
, File.ls/1
, File.read!/1
, and I can read environment variables that contain secrets with System.get_env/1
. I can run arbitrary commands on the system with System.cmd/2
. I can also shut down the application with System.halt/1
.
I think this is a really cool project, but you really need a sandbox for this to be safe to run.
When pressing tab, suggest commands. Initially, let's focus on making it work with previous bindings.
If input is empty and I press tab, I should see a list of all bindings.
If input is not empty and I press tab, I should see a list of all matching bindings
/console
to /
This happens when I try to enter commands:
[error] GenServer #PID<0.15711.0> terminating
** (UndefinedFunctionError) function ElixirConsoleWeb.ConsoleLive.handle_event/3 is undefined or private
Moving the "handle_event" method (and some supporting code) from "command_input_component.ex" to console_live.ex fixes the problem. Perhaps you didn't finish a recent refactoring?
All current tests pass running mix test. I use MacOS 10.15.3, Erlang 22.2.7, Elixir 1.9.1.
Move HTML from live/console_live.ex
to templates
Enum.reduce([1,2,3,4,5], &Kernel.+/2)
should work but doesn't.
invalid args for &, expected an expression in the format of &Mod.fun/arity, &local/arity or a capture containing at least one arg
ument as &1
Even the error message says it's allowed. And it indeed works in IEx.
We can use some space next to the console to display the list of current bindings and their value.
Use up
key to cycle through previous commands
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.