Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
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
9
#include "
native_runtime_types.h
"
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
*/
21
int
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
*/
30
int
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
*/
39
int
shell_runtime_command_capture_native
(
const
char
*repo_root,
int
argc,
char
*
const
argv[],
char
**output);
40
41
42
/** @} */
43
#endif
native_runtime_types.h
Defines shared native runtime data structures used across the Pharos C runtime.
exec_runtime_script_native
int exec_runtime_script_native(const char *repo_root, int argc, char **argv)
Executes the shared Pharos runtime script with the supplied arguments.
Definition
native_shell_bridge.c:25
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.
Definition
native_shell_bridge.c:99
shell_runtime_command_capture_native
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.
Definition
native_shell_bridge.c:71
ServeConfig
Parsed native serve configuration used to bootstrap the runtime listener.
Definition
native_runtime_types.h:16
src
native_runtime
c
native_shell_bridge.h
Generated by
1.17.0