2017-05-14 18:54:39 +00:00
|
|
|
//
|
|
|
|
// Created by Antoine Bartuccio on 14/05/2017.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef FISH_FISH_COMMANDS_H
|
|
|
|
#define FISH_FISH_COMMANDS_H
|
|
|
|
|
|
|
|
#include "fish_core.h"
|
|
|
|
|
|
|
|
/* Getters */
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Getter for global variable in external files */
|
2017-05-14 18:54:39 +00:00
|
|
|
char ** getBuiltinCommandsStr ();
|
2017-06-19 11:45:06 +00:00
|
|
|
|
|
|
|
/* Getter for global variable in external files */
|
2017-05-14 18:54:39 +00:00
|
|
|
builtinCommand **getBuiltinCommands();
|
2017-06-19 11:45:06 +00:00
|
|
|
|
|
|
|
/* Get size of the two global variable array */
|
2017-05-14 18:54:39 +00:00
|
|
|
int getNbBuiltins();
|
|
|
|
|
|
|
|
/* Built in shell commands */
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Change Dir internal command */
|
2017-05-14 18:54:39 +00:00
|
|
|
int fishCd(WordArray * args);
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Help internal command */
|
2017-05-14 18:54:39 +00:00
|
|
|
int fishHelp(WordArray * args);
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Exit internal command */
|
2017-05-14 18:54:39 +00:00
|
|
|
int fishExit(WordArray * args);
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Kek internal command */
|
2017-05-20 14:25:00 +00:00
|
|
|
int fishKek(WordArray *args);
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Clear the terninal (internal command) */
|
2017-06-11 00:10:11 +00:00
|
|
|
int fishClear(WordArray *args);
|
|
|
|
|
2017-06-19 11:45:06 +00:00
|
|
|
/* Handle signal from the user (such as ctrl+c */
|
2017-06-11 00:10:11 +00:00
|
|
|
void fishSignalHandler(int s);
|
|
|
|
|
2017-05-14 18:54:39 +00:00
|
|
|
#endif //FISH_FISH_COMMANDS_H
|