| 123456789101112131415161718192021222324252627282930313233343536 |
- #pragma once
- #include <toolbox/cli/cli_command.h>
- #include <cli/cli_main_commands.h>
- #include <furi.h>
- #define TAG "uPython"
- #define CLI "py"
- typedef enum {
- ActionNone,
- ActionOpen,
- ActionRepl,
- ActionExec,
- ActionExit,
- ActionTerm
- } Action;
- extern FuriString* file_path;
- extern volatile Action action;
- extern volatile FuriThreadStdoutWriteCallback stdout_callback;
- void upython_reset_file_path();
- Action upython_splash_screen();
- bool upython_confirm_exit_action();
- bool upython_select_python_file(FuriString* file_path);
- void upython_cli_register(void* args);
- void upython_cli_unregister(void* args);
- void upython_cli(PipeSide* pipe, FuriString* args, void* ctx);
- void upython_repl_execute(PipeSide* pipe);
- void upython_file_execute(FuriString* file);
|