-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.cpp
More file actions
23 lines (20 loc) · 744 Bytes
/
constants.cpp
File metadata and controls
23 lines (20 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "constants.hpp"
/*
stores the references to all commands we make for our program.
this way we can use Constants::<WHATEVER_STRING_YOU_NEED>
to get the exact string or constant variable we need every time
without worrying about typos or bugs
*/
namespace Constants {
const std::string TERMINAL_PROMPT = "> ";
const std::string WELCOME_MESSAGE = "Welcome to the custom shell!";
const std::string ERROR_MESSAGE = "An error occurred.";
const int SUCCESS = 0;
const int ERROR = 1;
const int NO_COMMAND = -1;
//commands
const std::string EXIT_COMMAND = "exit";
const std::string HELP_COMMAND = "help";
const std::string ALL_PROCESSES = "processes";
const std::string PROCESS_MEMORY = "pmem";
}