|
tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
|
#include "invoke.h"#include "../core/io_wrap.h"#include "../os/operations.h"#include "add_path.h"#include "cd.h"#include "child_processes.h"#include "datetime.h"#include "delete_file.h"#include "env.h"#include "help.h"#include "kill.h"#include "launch_executable.h"#include "list.h"#include "lsdir.h"#include "minibat.h"#include "resume.h"#include "stop.h"#include <assert.h>#include <stdbool.h>
Go to the source code of this file.
Functions | |
| enum run_result | invoke_runner (const struct cmd *cmd) |
Invoke corresponding functions based on cmd's type and value. | |
| enum run_result invoke_runner | ( | const struct cmd * | cmd | ) |
Invoke corresponding functions based on cmd's type and value.
Definition at line 22 of file invoke.c.
References clear_screen(), CMD_ADD_PATH, CMD_CHANGE_DIR, CMD_CHILD_PROCESSES, CMD_CLEAR, CMD_DATE, CMD_DEL_FILE, CMD_EXIT, CMD_GET_ENV, CMD_GET_ENV_ALL, CMD_HELP, CMD_INVALID_SYNTAX, CMD_KILL, CMD_LAUNCH_EXECUTABLE, CMD_LIST, CMD_LSDIR, CMD_MINIBAT, CMD_NOOP, CMD_RESUME, CMD_SET_ENV, CMD_STOP_PROC, CMD_TIME, CMD_UNKNOWN, CMD_UNSET_ENV, format_success(), run_add_path(), run_cd(), run_child_processes(), run_del(), RUN_EXIT, RUN_FAILED, run_get_all_env(), run_get_date(), run_get_env(), run_get_list_process(), run_get_time(), run_help(), run_kill(), run_launch_executable(), run_lsdir(), run_minibat(), RUN_OK, run_resume(), run_set_env(), run_stop(), run_unset_env(), cmd::type, and cmd::val.
Referenced by main().

