Subversion Repositories Kolibri OS

Rev

Rev 959 | Rev 1668 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
959 leency 1
 
1647 Nasarus 2
959 leency 3
 
4
extern char	PARAM[256];
5
6
 
7
char		cur_dir[256];
8
9
 
10
11
 
12
unsigned	ALIAS_NUM = 0;
13
14
 
15
16
 
17
18
 
19
char		CMD_HISTORY[CMD_HISTORY_NUM][256];
20
char		CMD_NUM;
21
22
 
23
24
 
25
26
 
27
28
 
29
30
 
1647 Nasarus 31
959 leency 32
 
1647 Nasarus 33
34
 
35
{
959 leency 36
	const char* name;
1647 Nasarus 37
	const char* help;
38
	const void* handler;
39
} command_t;
40
959 leency 41
 
1647 Nasarus 42
43
 
44
int cmd_alias(char arg[]);
45
int cmd_ccpuid(char dir[]);
46
int cmd_cd(char dir[]);
47
int cmd_clear(char arg[]);
48
int cmd_date(char arg[]);
49
int cmd_echo(char text[]);
50
int cmd_exit(char arg[]);
51
int cmd_free(char arg[]);
52
int cmd_help(char cmd[]);
53
int cmd_kill(char process[]);
54
int cmd_ls(char dir[]);
55
int cmd_mkdir(char dir[]);
56
int cmd_more(char file[]);
57
int cmd_ps(char arg[]);
58
int cmd_pwd(char arg[]);
59
int cmd_reboot(char arg[]);
60
int cmd_rm(char file[]);
61
int cmd_rmdir(char dir[]);
62
int cmd_touch(char file[]);
63
int cmd_ver(char arg[]);
64
int cmd_sleep(char arg[]);
65
66
 
67
68
 
69
{
959 leency 70
	{"about", "  Displays information about the program\n\r", &cmd_about},
1647 Nasarus 71
	{"alias", "  Allows the user view the current aliases\n\r", &cmd_alias},
72
	{"ccpuid","  Displays CPU information\n\r", &cmd_ccpuid},
73
	{"cd",    "  Changes directories\n\r", &cmd_cd},
74
	{"clear", "  Clears the display\n\r", &cmd_clear},
75
	{"date",  "  Returns the date and time\n\r", &cmd_date},
76
	{"echo",  "  Echoes the data to the screen\n\r", &cmd_echo},
77
	{"exit",  "  Exits program\n\r", &cmd_exit},
78
	{"free",  "  Displays total, free and used memory\n\r", &cmd_free},
79
	{"help",  "  Gives help\n\r", &cmd_help},
80
	{"kill",  "  Stops a running process\n\r", &cmd_kill},
81
	{"ls",    "  Lists the files in a directory\n\r", &cmd_ls},
82
	{"mkdir", "  Makes directory\n\r", &cmd_mkdir},
83
	{"more",  "  Displays a data file to the screen\n\r", &cmd_more},
84
	{"ps",    "  Lists the current processes running\n\r", &cmd_ps},
85
	{"pwd",   "  Displays the name of the working directory\n\r", &cmd_pwd},
86
	{"reboot","  Reboots the computer\n\r", &cmd_reboot},
87
	{"rm",    "  Removes files\n\r", &cmd_rm},
88
	{"rmdir", "  Removes directories\n\r", &cmd_rmdir},
89
	{"sleep", "  Stops the shell for the desired period\n\r", &cmd_sleep},
90
	{"touch", "  Creates an empty file or updates the time/date stamp on a file\n\r", &cmd_touch},
91
	{"ver",   "  Displays version\n\r", &cmd_ver},
92
};
959 leency 93
94
 
95