|
Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
|
Declares bridge helpers for invoking Pharos shell command surfaces. More...
#include "native_runtime_types.h"Go to the source code of this file.
Functions | |
Shell bridge helpers | |
| int | exec_runtime_script_native (const char *repo_root, int argc, char **argv) |
| Executes the shared Pharos runtime script with the supplied arguments. | |
| int | shell_status_or_build_native (const char *repo_root, const ServeConfig *config, int use_build, char **output) |
| Runs the shell-side status or build flow for one native serve target. | |
| int | shell_runtime_command_capture_native (const char *repo_root, int argc, char *const argv[], char **output) |
| Executes a runtime shell command and captures its combined output. | |
Declares bridge helpers for invoking Pharos shell command surfaces.
Definition in file native_shell_bridge.h.
| int exec_runtime_script_native | ( | const char * | repo_root, |
| int | argc, | ||
| char ** | argv ) |
Executes the shared Pharos runtime script with the supplied arguments.
| repo_root | Repository root used to locate the script. |
| argc | Number of script arguments. |
| argv | Argument vector passed through to the script. |
Definition at line 25 of file native_shell_bridge.c.
References runtime_script_path_native().
Referenced by main().
| int shell_runtime_command_capture_native | ( | const char * | repo_root, |
| int | argc, | ||
| char *const | argv[], | ||
| char ** | output ) |
Executes a runtime shell command and captures its combined output.
| repo_root | Repository root used to locate runtime scripts. |
| argc | Number of command arguments. |
| argv | Argument vector passed through to the shell command. |
| output | Destination for captured output text. |
Definition at line 71 of file native_shell_bridge.c.
References capture_execv_output_env_native(), and runtime_script_path_native().
Referenced by capture_migrate_verify_report_json(), and shell_status_or_build_native().
| int shell_status_or_build_native | ( | const char * | repo_root, |
| const ServeConfig * | config, | ||
| int | use_build, | ||
| char ** | output ) |
Runs the shell-side status or build flow for one native serve target.
| repo_root | Repository root used to locate runtime scripts. |
| config | Target serve configuration. |
| use_build | Non-zero to request a build flow instead of status. |
| output | Destination for captured command output. |
Definition at line 99 of file native_shell_bridge.c.
References ServeConfig::app_dir, ServeConfig::base_path, ServeConfig::build_dir, ServeConfig::conf_path, ServeConfig::debug, ServeConfig::kind, ServeConfig::log_path, shell_runtime_command_capture_native(), ServeConfig::state_dir, ServeConfig::state_path, and ServeConfig::target_id.
Referenced by load_app_runtime_for_single_app(), and resolve_website_root().