aboutsummaryrefslogtreecommitdiff
path: root/docs/lib/global_sh.html
blob: 6d444c8a6c2bc2026a3d121d1049410a0a6d77cb (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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../robodoc.css" type="text/css" />
<script src="../robodoc.js"></script>
<title>global.sh</title>
<!-- Source: ./lib/global.sh -->
<!-- Generated with ROBODoc Version 4.99.44 (May  7 2025) -->
</head>
<body>
<div id="logo">
<a name="robo_top_of_doc"></a>
</div> <!-- logo -->
<div id="navigation">
<a class="menuitem" href="../toc_index.html#top">Table of Contents</a>
<a class="menuitem" href="../robo_sourcefiles.html#top">Sourcefiles</a>
<a class="menuitem" href="../masterindex.html#top">Index</a>
<a class="menuitem" href="../robo_dirs.html#top">Directories</a>
<a class="menuitem" href="../robo_files.html#top">Files</a>
<a class="menuitem" href="../robo_definitions.html#top">Definitions</a>
<a class="menuitem" href="../robo_functions.html#top">Functions</a>
<a class="menuitem" href="../robo_modules.html#top">Modules</a>
</div> <!-- navigation -->
<div id="content">
<hr />
<a name="lib2fglobal2esh"></a>
<a name="robo2"></a><h2>lib/global.sh [ Files ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="../tskw_sh.html#robo6">lib</a> ] [ <a href="../robo_files.html#robo_top_of_doc">Files</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>global.sh</strong> - общие функции для всех скриптов.
</p>
<p class="item_name">USES</p>
<ul><li> <a href="./environment_sh.html#robo_top_of_doc">environment.sh</a>
</li>
</ul>
<p></p>

<hr />
<a name="global2esh2fcheckExistingProject"></a>
<a name="robo18"></a><h2>global.sh/checkExistingProject [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>checkExistingProject</strong> - проверка на наличие существующего проекта.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># id | uuid - id или uuid задачи.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>checkExistingProject</strong> &lt;id | uuid&gt;
#
# USES BY
#
# - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
</pre>

<hr />
<a name="global2esh2fdenotateAllAnnotations"></a>
<a name="robo19"></a><h2>global.sh/denotateAllAnnotations [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>denotateAllAnnotations</strong> - удаление всех аннотаций у задачи.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># id | uuid - id или uuid задачи.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>denotateAllAnnotations</strong> &lt;id | uuid&gt;
</pre>
<p class="item_name">USES</p>
<ul><li> <a href="#robo20">getAnnotationCount</a>
</li>
</ul>
<p>
 USES BY
</p>

<p> - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
</p>

<hr />
<a name="global2esh2fgetAnnotationCount"></a>
<a name="robo20"></a><h2>global.sh/getAnnotationCount [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>getAnnotationCount</strong> - возвращает длину массива аннотаций задачи.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># id | uuid - id или uuid задачи.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>getAnnotationCount</strong> &lt;id | uuid&gt;
#
# USES BY
#
# - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
# - <a href="#robo19">denotateAllAnnotations</a>
</pre>
<p class="item_name">RETURN VALUE</p>
<pre class="source"># return {String} - Количество аннотаций
</pre>

<hr />
<a name="global2esh2fgetLatestTaskId"></a>
<a name="robo22"></a><h2>global.sh/getLatestTaskId [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>getLatestTaskId</strong> - возвращает id задачи.
</p>
<p class="item_name">DESCRIPTION</p>
<p> Возвращает id задачи с тегом +LATEST, которая является самой последней из добавленных.
</p>

<p> USES BY
</p>

<p> - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
</p>
<p class="item_name">RETURN VALUE</p>
<pre class="source"># return {string} - Id задачи
</pre>
<p class="item_name">NOTES</p>
<pre> <a href="https://taskwarrior.org/docs/tags/">https://taskwarrior.org/docs/tags/</a>
</pre>

<hr />
<a name="global2esh2fgetLatestTaskUuid"></a>
<a name="robo23"></a><h2>global.sh/getLatestTaskUuid [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>getLatestTaskUuid</strong> - возвращает id задачи.
</p>
<p class="item_name">DESCRIPTION</p>
<p> Возвращает uuid задачи с тегом +LATEST, которая является самой последней из добавленных.
</p>

<p> USES BY
</p>

<p> - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
</p>
<p class="item_name">RETURN VALUE</p>
<pre class="source"># return {string} - Uuid задачи
</pre>
<p class="item_name">NOTES</p>
<pre> <a href="https://taskwarrior.org/docs/tags/">https://taskwarrior.org/docs/tags/</a>
</pre>

<hr />
<a name="global2esh2fgetNameProject"></a>
<a name="robo24"></a><h2>global.sh/getNameProject [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>getNameProject</strong> - возвращает название проекта задачи.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># id | uuid - id или uuid задачи.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>getNameProject</strong> &lt;id | uuid&gt;
</pre>
<p class="item_name">RETURN VALUE</p>
<pre class="source"># return {String} - Uuid задачи
</pre>
<p class="item_name">USED BY</p>
<ul><li> <a href="./edit_sh.html#robo0">edit.sh</a>
</li>
</ul>
<p>
 USES BY
</p>

<p> - <a href="./edit_sh.html#robo0">edit.sh</a>
 - <a href="../edit_project_sh.html#robo_top_of_doc">edit_project.sh</a>
</p>

<hr />
<a name="global2esh2fgetTags"></a>
<a name="robo26"></a><h2>global.sh/getTags [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>getTags</strong> - возвращает массив тегов задачи.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># id | uuid - id или uuid задачи.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>getTags</strong> &lt;id | uuid&gt;
#
# USES BY
#
# - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
# - <a href="../edit_project_sh.html#robo_top_of_doc">edit_project.sh</a>
</pre>
<p class="item_name">RETURN VALUE</p>
<pre class="source"># return {Array} - Массив тегов
</pre>

<hr />
<a name="global2esh2fhasProject"></a>
<a name="robo27"></a><h2>global.sh/hasProject [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>hasProject</strong> - проверка на наличие проекта у задачи.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># id | uuid - id или uuid задачи.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>hasProject</strong> &lt;id | uuid&gt;
</pre>
<p class="item_name">USES</p>
<ul><li> <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
</li>
</ul>
<p></p>

<hr />
<a name="global2esh2fnotify"></a>
<a name="robo28"></a><h2>global.sh/notify [ Functions ]</h2>

<p>[ <a href="#robo_top_of_doc">Top</a> ] [ <a href="#robo2">global.sh</a> ] [ <a href="../robo_functions.html#robo_top_of_doc">Functions</a> ]</p>
<p class="item_name">NAME</p>
<p> <strong>notify</strong> - вывод сообщения через <strong>notify</strong>-send.
</p>
<p class="item_name">ARGUMENTS</p>
<pre class="source"># category - категория уведомления.
# message - строка сообщения.
</pre>
<p class="item_name">USAGE</p>
<pre class="source"># <strong>notify</strong> &lt;category&gt; &lt;message&gt;
</pre>
<p class="item_name">EXAMPLE</p>
<pre class="source"># <strong>notify</strong> "msg-error" "Ошибка!"
</pre>
<p class="item_name">NOTES</p>
<pre> Категории уведомлений находятся в ~/.config/mako/category

 USES BY

 - <a href="../tskw_sh.html#robo_top_of_doc">tskw.sh</a>
 - <a href="./project_sh.html#robo_top_of_doc">project.sh</a>
 - <a href="#robo_top_of_doc">global.sh</a>
 - <a href="./edit_sh.html#robo0">edit.sh</a>
 - <a href="../edit_project_sh.html#robo_top_of_doc">edit_project.sh</a>
</pre>

</div> <!-- content -->
<div id="footer">
<p>Generated from ./lib/global.sh with <a href="http://www.xs4all.nl/~rfsber/Robo/robodoc.html">ROBODoc</a> V4.99.44 on 2025-08-08 06:55:59</p>
</div> <!-- footer -->
</body>
</html>