Quash Shell  0.1
A simple yet powerfull shell program
Public Attributes | List of all members
Command Union Reference

Make all command types the same size and interchangable. More...

#include <command.h>

Public Attributes

SimpleCommand simple
 
GenericCommand generic
 
EchoCommand echo
 
ExportCommand export
 
CDCommand cd
 
KillCommand kill
 
PWDCommand pwd
 
JobsCommand jobs
 
ExitCommand exit
 
EOCCommand eoc
 

Detailed Description

Make all command types the same size and interchangable.

This is useful for arrays or making a common entry point for all command types. The exact type information can be recovered later with the get_command_type() function.

See also
get_command_type, SimpleCommand, GenericCommand, EchoCommand, ExportCommand, CDCommand, KillCommand, PWDCommand, JobsCommand, ExitCommand, EOCCommand

Member Data Documentation

◆ cd

CDCommand Command::cd

Read structure as a CDCommand

◆ echo

EchoCommand Command::echo

Read structure as a ExportCommand

◆ eoc

EOCCommand Command::eoc

Read structure as a EOCCommand

◆ exit

ExitCommand Command::exit

Read structure as a ExitCommand

◆ export

ExportCommand Command::export

Read structure as a ExportCommand

◆ generic

GenericCommand Command::generic

Read structure as a GenericCommand

◆ jobs

JobsCommand Command::jobs

Read structure as a JobsCommand

◆ kill

KillCommand Command::kill

Read structure as a KillCommand

◆ pwd

PWDCommand Command::pwd

Read structure as a PWDCommand

◆ simple

SimpleCommand Command::simple

Read structure as a SimpleCommand


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