Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_shell_bridge.h
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Declares bridge helpers for invoking Pharos shell command surfaces.
4 */
5
6#ifndef PHAROS_NATIVE_SHELL_BRIDGE_H
7#define PHAROS_NATIVE_SHELL_BRIDGE_H
8
10
11/** @name Shell bridge helpers
12 * @{
13 */
14/**
15 * @brief Executes the shared Pharos runtime script with the supplied arguments.
16 * @param repo_root Repository root used to locate the script.
17 * @param argc Number of script arguments.
18 * @param argv Argument vector passed through to the script.
19 * @return Script exit status, or a non-zero launcher status on failure.
20 */
21int exec_runtime_script_native(const char *repo_root, int argc, char **argv);
22/**
23 * @brief Runs the shell-side status or build flow for one native serve target.
24 * @param repo_root Repository root used to locate runtime scripts.
25 * @param config Target serve configuration.
26 * @param use_build Non-zero to request a build flow instead of status.
27 * @param output Destination for captured command output.
28 * @return Shell command exit status, or a non-zero launcher status on failure.
29 */
30int shell_status_or_build_native(const char *repo_root, const ServeConfig *config, int use_build, char **output);
31/**
32 * @brief Executes a runtime shell command and captures its combined output.
33 * @param repo_root Repository root used to locate runtime scripts.
34 * @param argc Number of command arguments.
35 * @param argv Argument vector passed through to the shell command.
36 * @param output Destination for captured output text.
37 * @return Shell command exit status, or a non-zero launcher status on failure.
38 */
39int shell_runtime_command_capture_native(const char *repo_root, int argc, char *const argv[], char **output);
40
41
42/** @} */
43#endif
Defines shared native runtime data structures used across the Pharos C runtime.
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.
Parsed native serve configuration used to bootstrap the runtime listener.