Repository navigation
Expand file tree
/
Copy pathshellapi.1
More file actions
203 lines (203 loc) · 5.12 KB
/
Copy pathshellapi.1
File metadata and controls
203 lines (203 loc) · 5.12 KB
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
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.13.
.TH GENAPP "1" "October 2026" "Genapp 1.1.4" "User Commands"
.SH NAME
Genapp \- shell-api
.SH SYNOPSIS
.B genapp
\fI\,OPTIONS <application name>\/\fR
.PP
Arguments:
.TP
<application name>
a word identifying the app, starting with an uppercase (will be enforced)
.PP
OPTIONS:
.PP
\fB\-\-author\fR =<TEXTE>
.IP
Author of the app to generate
.PP
\fB\-\-config\fR
.IP
Show the configuration file content
.PP
\fB\-\-desc\fR =<TEXTE>
.IP
Description of the app to generate
.PP
\fB\-\-email\fR =<TEXTE>
.IP
Official contact email for the app to generate
.PP
\fB\-\-github\-id\fR =<TEXTE>
.IP
User id to use to build the github URL for the debian
package homepage definition of the generated app
.PP
\fB\-\-help\fR, \fB\-h\fR
.IP
Display Genapp usage
.PP
\fB\-\-http\fR =<URL>
.IP
URL for the debian package homepage of the app to generate
.PP
\fB\-\-man\fR
.IP
Display the Genapp manual page
.PP
\fB\-\-root\-release\-dir\fR =<FOLDER PATH>
.IP
software release folder for the generated app
.PP
\fB\-\-verbose\fR
.IP
Verbose mode
.PP
\fB\-v\fR, \fB\-\-version\fR
.IP
Display the Genapp version
.PP
\fB\-y\fR
.IP
Assume 'Yes' when prompted for confirmation
.SH DESCRIPTION
Genapp tool generates shell script app skeletons that build upon the shell\-api library. The generated skeletons are immediately operational and ready for the app implementation. It will generate the following files:
.PP
\- COPYRIGHT.txt : copyright notice
.PP
\- LICENSE.txt: MIT by default, to be replaced if necessary
.PP
\- CHANGELOG.txt: to be filled out as versions are released
.PP
\- EXAMPLES.txt: List of examples. Indentation matters for manpage.
.PP
\- <yourapp>__options.sh: file for managing options. For default ones, see doc.
.PP
\- <yourapp>__help.h: file providing help functions.
.PP
\- <yourapp>__vars.h: file containing the app\-specific global variables
.PP
\- <yourapp>: application skeleton
.PP
\- pack/debian/control : for packaging with dpkg
.SH "OPTIONS DETAILS"
\fB\-\-author\fR <TEXTE>
.IP
Specifies the author of the generated app as it will appear in the source file
headers, copyright notices and debian packages
.PP
\fB\-\-config\fR
.IP
Shows the configuration file content
.PP
\fB\-\-desc\fR <TEXTE>
.IP
Supplies a description of the app to generate
.PP
\fB\-\-email\fR <TEXTE>
.IP
Specifies the generated app's official contact email, typically the author's
one, as it will appear in the source file headers, copyright notices and debian
packages
.PP
\fB\-\-github\-id\fR <TEXTE>
.IP
Supplies the github id to use to build https github URL for the debian package
when \fB\-\-http\fR is not specified
.PP
\fB\-\-help\fR, \fB\-h\fR
.IP
Displays Genapp usage
.PP
\fB\-\-http\fR <URL>
.IP
Specifies the URL for the debian package homepage of the generated app.
If none is supplied the default URL is https://github/<github user
id>/<appname>,
where <github user id> is specified with \fB\-\-github\-id\fR
.PP
\fB\-\-man\fR
.IP
Displays the Genapp manual page. The output can be used to generate regular MAN
PAGES
.PP
\fB\-\-root\-release\-dir\fR <FOLDER PATH>
.IP
Specifies the path to the root folder where are stored software release for the
generated app.
The folder path shall be relative to the application source folder.
A subfolder will be created below the release folder for the generated app,
therefore the release folder can be used for other apps as well.
.PP
\fB\-\-verbose\fR
.IP
Verbose mode
.PP
\fB\-v\fR, \fB\-\-version\fR
.IP
Displays the Genapp version. The output can be used to generate regular debian
packages
.PP
\fB\-y\fR
.IP
Assume 'Yes' answer for any confirmation request
.SH EXAMPLES
Generate a test app
.IP
# An app named 'TestApp' is generated, inside folder 'testapp', main script will be 'testapp'. The home page URL for the app will be https://github/michelm33/testapp
.IP
genapp TestApp \-y \-\-author="George W" \-\-email="george.w@wh.org" \-\-desc="A test application" \-\-github\-id="michelm33" \-\-root\-release\-dir="../release"
.IP
# Same as previous example, but the home page URL for the app is explicitly defined as 'https://slashetc/testapp'
.IP
genapp TestApp \-y \-\-author="George W" \-\-email="george.w@wh.org" \-\-desc="A test application" \-\-http="https://slashetc/testapp" \-\-root\-release\-dir="../release"
.PP
Execute the generated app
.IP
# 'TestApp' is the generated app
.IP
\&./testapp
.PP
Show the app help
.IP
# 'TestApp' is the generated app
.IP
\&./testapp \-h
.PP
Show the last 30 log lines
.IP
# 'TestApp' is the generated app
.IP
\&./testapp \-\-log=30
.PP
Show the files managed by the app
.IP
# 'TestApp' is the generated app
.IP
\&./testapp \-\-files
.PP
Generate a debian package
.IP
# This generates a release file tree and a debian package
.IP
make release
.PP
Generate the man pages
.IP
# This generates the manpage which can be open using 'man testapp'
.IP
make man
.IP
man testapp
.SH AUTHOR
Written by Michel MEHL
.SH "REPORTING BUGS"
Report bugs to <michel.mehl@slashetc.fr>
.SH COPYRIGHT
Copyright \(co 2024\-2026 Michel Mehl.
All rights reserved.
Tous droits réservés (France).
.PP
License terms written down in file LICENSE.txt
Les termes de la licence sont détaillés dans le fichier LICENSE.txt