-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskman-ns.inc.php
141 lines (111 loc) · 1.98 KB
/
taskman-ns.inc.php
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
namespace taskman;
require_once(dirname(__FILE__) . '/taskman.inc.php');
function __($str)
{
return \taskman_str($str);
}
function reset()
{
return \taskman_reset();
}
function str($str)
{
return \taskman_str($str);
}
function run($argv=null, $help_func='task_help')
{
return \taskman_run($argv,$help_func);
}
function process_argv(&$argv)
{
return \taskman_process_argv($argv);
}
function collecttasks()
{
return \taskman_collecttasks();
}
function gettasks()
{
return \taskman_gettasks();
}
function gettask($task)
{
return \taskman_gettask($task);
}
function parse_taskstr($str)
{
return \taskman_parse_taskstr($str);
}
function runtask($task, $args=array())
{
return \taskman_runtask($task,$args);
}
function runtasks($tasks, $args=array(), $isolate=false)
{
return \taskman_runtasks($tasks,$args,$isolate);
}
function runtasks_parall($tasks, $args=array())
{
return \taskman_runtasks_parall($tasks,$args);
}
function current_task()
{
return \taskman_current_task();
}
function shell_ensure($cmd, &$out=null)
{
return \taskman_shell_ensure($cmd,$out);
}
function shell($cmd, &$ret=null, &$out=null)
{
return \taskman_shell($cmd,$ret,$out);
}
function msg($msg)
{
return \taskman_msg($msg);
}
function sysmsg($msg)
{
return \taskman_sysmsg($msg);
}
function prop($name)
{
return \taskman_prop($name);
}
function propor($name, $def)
{
return \taskman_propor($name,$def);
}
function propset($name, $value)
{
return \taskman_propset($name,$value);
}
function propsetor($name, $value)
{
return \taskman_propsetor($name,$value);
}
function propunset($name)
{
return \taskman_propunset($name);
}
function getprops()
{
return \taskman_getprops();
}
function isprop($name)
{
return \taskman_isprop($name);
}
function configset($name, $value)
{
return \taskman_configset($name,$value);
}
function config($name, $def=null)
{
return \taskman_config($name,$def);
}
function rmdir_recurse($path)
{
return \taskman_rmdir_recurse($path);
}