blob: 6304d364c699db52ae2e812b80db91951d65441b [file] [edit]
#ifndef _HAD_SHELL_INT_H
#define _HAD_SHELL_INT_H
#include "shell.h"
enum command_status {
COMMAND_STATUS_OK,
COMMAND_STATUS_ERROR,
COMMAND_STATUS_EXIT
};
typedef enum command_status command_status_t;
void complete_command(completions_t *completions, const argument_type_t *type, const char *str);
bool use_readline(const char *script_filename);
bool execute_lines_readline();
command_status_t execute_line(const char *line, error_message_t *error_message);
completions_t *complete(const char *text, size_t position, size_t *last_word_length, char *open_quote);
void free_completions(char **matches);
#endif /* _HAD_SHELL_INT_H */