1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-11-25 02:24:21 +00:00
fish/fish_shell/fish_commands.h

42 lines
864 B
C
Raw Normal View History

//
// 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 */
char ** getBuiltinCommandsStr ();
2017-06-19 11:45:06 +00:00
/* Getter for global variable in external files */
builtinCommand **getBuiltinCommands();
2017-06-19 11:45:06 +00:00
/* Get size of the two global variable array */
int getNbBuiltins();
/* Built in shell commands */
2017-06-19 11:45:06 +00:00
/* Change Dir internal command */
int fishCd(WordArray * args);
2017-06-19 11:45:06 +00:00
/* Help internal command */
int fishHelp(WordArray * args);
2017-06-19 11:45:06 +00:00
/* Exit internal command */
int fishExit(WordArray * args);
2017-06-19 11:45:06 +00:00
/* Kek internal command */
int fishKek(WordArray *args);
2017-06-19 11:45:06 +00:00
/* Clear the terninal (internal command) */
int fishClear(WordArray *args);
2017-06-19 11:45:06 +00:00
/* Handle signal from the user (such as ctrl+c */
void fishSignalHandler(int s);
#endif //FISH_FISH_COMMANDS_H