-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently Honey-Potion creates a generic Front-end using LIBBPF to open, load and attach the program skeleton. Other than that, the Front-end can change when there is a map to be printed, allowing the output of it's values.
An improvement to that behavior would be to allow users to define their own Front-ends in a Elixir function that then gets translated for them. That way, we can eventually allow user interactivity in our program. For example:
def frontend() do
Front.getinput(char)
case char do
"a" -> BPF.open_load_attach("Program_a")
"b" -> BPF.open_load_attach("Program_b")
x -> Front.print("Usage: <char> where char is "a" or "b"
end
end
Other than getting a user input, we could also get command line arguments.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request