mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
os: cleanup field comments of os.Process (#21023)
This commit is contained in:
parent
cb595293d5
commit
eaa4edf484
1 changed files with 7 additions and 9 deletions
|
@ -18,15 +18,13 @@ pub enum ProcessState {
|
||||||
@[heap]
|
@[heap]
|
||||||
pub struct Process {
|
pub struct Process {
|
||||||
pub mut:
|
pub mut:
|
||||||
filename string // the process's command file path
|
filename string // the process's command file path
|
||||||
pid int // the PID of the process
|
pid int // the PID of the process
|
||||||
code int = -1
|
code int = -1 // the exit code of the process, != -1 *only* when status is .exited *and* the process was not aborted
|
||||||
// the exit code of the process, != -1 *only* when status is .exited *and* the process was not aborted
|
status ProcessState = .not_started // the current status of the process
|
||||||
status ProcessState = .not_started
|
err string // if the process fails, contains the reason why
|
||||||
// the current status of the process
|
args []string // the arguments that the command takes
|
||||||
err string // if the process fails, contains the reason why
|
work_folder string // the initial working folder of the process. When '', reuse the same folder as the parent process.
|
||||||
args []string // the arguments that the command takes
|
|
||||||
work_folder string // the initial working folder of the process. When '', reuse the same folder as the parent process.
|
|
||||||
env_is_custom bool // true, when the environment was customized with .set_environment
|
env_is_custom bool // true, when the environment was customized with .set_environment
|
||||||
env []string // the environment with which the process was started (list of 'var=val')
|
env []string // the environment with which the process was started (list of 'var=val')
|
||||||
use_stdio_ctl bool // when true, then you can use p.stdin_write(), p.stdout_slurp() and p.stderr_slurp()
|
use_stdio_ctl bool // when true, then you can use p.stdin_write(), p.stdout_slurp() and p.stderr_slurp()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue