blob: 182aa6649afd8d575b8c36750b5d25fb4ea4f425 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef DEF_KERNELSHELL_CLASS_H
#define DEF_KERNELSHELL_CLASS_H
#include <VTManager/VirtualTerminal.proto.h>
#include <VFS/DirectoryNode.class.h>
#include <TaskManager/Thread.class.h>
#include <Library/Vector.class.h>
class KernelShell {
friend u32int shellRun(void* ks);
private:
VirtualTerminal *m_vt;
DirectoryNode *m_cwd;
Thread* m_thread;
static u32int m_instances;
~KernelShell();
u32int run();
//in KernelShell-fs
void ls(Vector<String>& args);
void cd(Vector<String>& args);
void pwd(Vector<String>& args);
void cat(Vector<String>& args);
void mkdir(Vector<String>& args);
void rm(Vector<String>& args);
void wf(Vector<String>& args);
//in KernelShell-sys
void devices(Vector<String>& args);
void loadkeys(Vector<String>& args);
void free(Vector<String>& args);
void uptime(Vector<String>& args);
void part(Vector<String>& args);
public:
KernelShell(DirectoryNode* cwd);
static u32int getInstances() { return m_instances; }
};
#endif
|