Skip to content

Commit 57a3795

Browse files
added about page and changed my jargon
1 parent 1bee90a commit 57a3795

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

headers/commands.h

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
*
55
* @author Aryan Karamtoth (SpaciousCoder78)
66
*
7-
* @date Sunday, March 16 2024
7+
* @date Saturday, June 07 2025
88
*
9-
* @brief Gigahertz Shell's Command Functions
9+
* @brief QuickOverflow's Command Functions
1010
*
1111
****************************************************/
1212

1313

14+
//including python header for calling python scripts
1415
#include <Python.h>
1516

1617
#ifndef COMMANDS_H
@@ -21,23 +22,26 @@
2122
/*
2223
Function Declarations for builtin shell commands:
2324
*/
24-
int quickoverflow_search(char **args); //change directory
25+
int quickoverflow_search(char **args); //open search
2526
int quickoverflow_help(char **args); //help command
26-
int quickoverflow_leave(char **args); //exit command
27+
int quickoverflow_quit(char **args); //exit command
28+
int quickoverflow_about(char **args); //about command
2729

2830
/*
2931
List of builtin commands, followed by their corresponding functions.
3032
*/
3133
char *builtin_str[] = {
32-
"search", //change directory
34+
"search", //search command
3335
"help", //help command
34-
"leave", //exit command
36+
"quit", //exit command
37+
"about",
3538
};
3639

3740
int (*builtin_func[]) (char **) = {
38-
&quickoverflow_search, //change directory
41+
&quickoverflow_search, //search directory
3942
&quickoverflow_help, //help command
40-
&quickoverflow_leave, //exit command
43+
&quickoverflow_quit, //exit command
44+
&quickoverflow_about,
4145
};
4246

4347
int quickoverflow_num_builtins() {
@@ -78,8 +82,7 @@ int quickoverflow_search(char **args)
7882

7983

8084
//*****************************************sos*********************************************** */
81-
int quickoverflow_help(char **args)
82-
{
85+
int quickoverflow_help(char **args){
8386
int i;
8487
printf("--------------------------------QuickOverflow-----------------------------\n");
8588
printf("---------------------------------Version 1.0----------------------------\n");
@@ -95,10 +98,22 @@ int quickoverflow_help(char **args)
9598

9699

97100
//*****************************************leave*********************************************** */
98-
int quickoverflow_leave(char **args)
99-
{
101+
int quickoverflow_quit(char **args){
100102
return 0;
101103
}
102104

105+
//**************************************about (ofc credits)************************************* */
106+
107+
int quickoverflow_about(char **args){
108+
printf("-------------------------------QuickOverflow-----------------------------------\n");
109+
printf("Version: 1.0\n");
110+
printf("License: MIT License\n");
111+
printf("Author: Aryan Karamtoth (SpaciousCoder78)\n");
112+
printf("Author Email: [email protected]\n");
113+
printf("Supported Operating Systems: Linux\n");
114+
printf("Github Repository: https://github.com/SpaciousCoder78/QuickOverflow\n");
115+
printf("Github Issues: https://github.com/SpaciousCoder78/QuickOverflow/issues\n");
116+
}
117+
103118

104119
#endif

headers/shellops.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ char **quickoverflow_splitLine(){
136136
}
137137

138138
//launch function
139-
int quickoverflow_launch(char **args)
140-
{
139+
int quickoverflow_launch(char **args){
141140
pid_t pid, wpid;
142141
int status;
143142

@@ -162,8 +161,7 @@ int quickoverflow_launch(char **args)
162161
return 1;
163162
}
164163

165-
int quickoverflow_execute(char **args)
166-
{
164+
int quickoverflow_execute(char **args){
167165
int i;
168166

169167
if (args[0] == NULL) {

0 commit comments

Comments
 (0)