blob: 661587db040dae0ec505f5a452baa51bb0e76f13 (
plain)
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
|
#include "actions.h"
void actions(char action)
{
int os = detectOsType();
switch (action)
{
case 'c':
clean(os);
break;
case 'h':
help();
break;
case 'i':
installPackage(os);
break;
case 'q':
queryPackage(os);
break;
case 'r':
removePackage(os);
break;
case 's':
searchPackage(os);
break;
case 'u':
updatePackage(os);
break;
default:
puts("Command not found");
help();
}
}
|