tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
cmd Struct Reference

Resulting struct after parsing the input. More...

#include <cmd.h>

Collaboration diagram for cmd:

Data Fields

enum cmd_type type
 
union { 
 
   os_char *   new_dir 
 
   int   proc_id 
 
   os_char *   new_path 
 
   os_char *   filename 
 
   os_char *   dir 
 
   struct { 
 
      os_char *   name 
 
      os_char *   val 
 
   }   env 
 
   struct args   args 
 
val 
 

Detailed Description

Resulting struct after parsing the input.

Definition at line 39 of file cmd.h.

Field Documentation

◆ args

struct args cmd::args

Definition at line 51 of file cmd.h.

◆ dir

os_char* cmd::dir

Definition at line 46 of file cmd.h.

◆ [struct]

struct { ... } cmd::env

◆ filename

os_char* cmd::filename

Definition at line 45 of file cmd.h.

◆ name

os_char* cmd::name

Definition at line 48 of file cmd.h.

◆ new_dir

os_char* cmd::new_dir

Definition at line 42 of file cmd.h.

◆ new_path

os_char* cmd::new_path

Definition at line 44 of file cmd.h.

◆ proc_id

int cmd::proc_id

Definition at line 43 of file cmd.h.

◆ type

enum cmd_type cmd::type

Definition at line 40 of file cmd.h.

Referenced by cmd_destroy(), cmd_init_from_str(), and invoke_runner().

◆ val [1/2]

os_char* cmd::val

Definition at line 49 of file cmd.h.

Referenced by cmd_destroy(), cmd_init_from_str(), and invoke_runner().

◆ [union] [2/2]

union { ... } cmd::val

The documentation for this struct was generated from the following file: