myshell 2.0.0
Loading...
Searching...
No Matches
msh_internal.h
1//
2// Created by andrew on 10/9/23.
3//
4
5#ifndef MYSHELL_MSH_INTERNAL_H
6#define MYSHELL_MSH_INTERNAL_H
7
8#include "types/msh_variable.h"
9
10#include <vector>
11
12constexpr auto SHELL = "msh";
13constexpr auto VERSION = "2.0.0";
14
15extern std::vector<variable> variables;
16
17variable *get_variable(std::string_view name);
18
19void set_variable(const std::string &name, const std::string &value);
20
21void msh_init();
22
23void msh_exit();
24
25#endif //MYSHELL_MSH_INTERNAL_H
std::vector< variable > variables
The internal variable table.
Definition msh_internal.cpp:28
void msh_exit()
Perform necessary operations before exiting the shell.
Definition msh_internal.cpp:154
variable * get_variable(std::string_view name)
Get a pointer to an internal variable with the given name.
Definition msh_internal.cpp:78
void set_variable(const std::string &name, const std::string &value)
Set the value of an internal variable with the given name.
Definition msh_internal.cpp:93
void msh_init()
Initialize the shell.
Definition msh_internal.cpp:112
Internal variable structure.
Definition msh_variable.h:13