Subversion Repositories Kolibri OS

Rev

Rev 1647 | Rev 1669 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1647 Rev 1668
Line 1... Line 1...
1
#define SHELL_VERSION "0.4.4"
1
#define SHELL_VERSION "0.4.5"
Line 2... Line 2...
2
 
2
 
3
extern char	PATH[256];
3
extern char	PATH[256];
Line 4... Line 4...
4
extern char	PARAM[256];
4
extern char	PARAM[256];
Line 47... Line 47...
47
int cmd_clear(char arg[]);
47
int cmd_clear(char arg[]);
48
int cmd_date(char arg[]);
48
int cmd_date(char arg[]);
49
int cmd_echo(char text[]);
49
int cmd_echo(char text[]);
50
int cmd_exit(char arg[]);
50
int cmd_exit(char arg[]);
51
int cmd_free(char arg[]);
51
int cmd_memory(char arg[]);
52
int cmd_help(char cmd[]);
52
int cmd_help(char cmd[]);
53
int cmd_kill(char process[]);
53
int cmd_kill(char process[]);
54
int cmd_ls(char dir[]);
54
int cmd_ls(char dir[]);
55
int cmd_mkdir(char dir[]);
55
int cmd_mkdir(char dir[]);
56
int cmd_more(char file[]);
56
int cmd_more(char file[]);
57
int cmd_ps(char arg[]);
57
int cmd_ps(char arg[]);
Line 61... Line 61...
61
int cmd_rmdir(char dir[]);
61
int cmd_rmdir(char dir[]);
62
int cmd_touch(char file[]);
62
int cmd_touch(char file[]);
63
int cmd_ver(char arg[]);
63
int cmd_ver(char arg[]);
64
int cmd_sleep(char arg[]);
64
int cmd_sleep(char arg[]);
65
 
65
int cmd_turnoff(char arg[]);
-
 
66
int cmd_kerver(char arg[]);
-
 
67
int cmd_uptime(char param[]);
-
 
68
 
Line 66... Line 69...
66
/// ===========================================================
69
/// ===========================================================
Line 67... Line 70...
67
 
70
 
68
const command_t COMMANDS[]=
-
 
69
{
-
 
70
	{"about", "  Displays information about the program\n\r", &cmd_about},
-
 
71
	{"alias", "  Allows the user view the current aliases\n\r", &cmd_alias},
-
 
72
	{"ccpuid","  Displays CPU information\n\r", &cmd_ccpuid},
71
#if LANG_ENG
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},
72
	#include "locale/eng/globals.h"
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},
73
#elif LANG_RUS
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},
74
	#include "locale/rus/globals.h"
Line 92... Line 75...
92
};
75
#endif