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
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
2526int 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 */
3133char * 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
3740int (* 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
4347int 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
0 commit comments