kore/share/man/kodev.1

299 lines
4.9 KiB
Groff
Raw Permalink Normal View History

2018-04-24 09:56:35 +12:00
.TH KODEV 1
.SH NAME
kodev \- Kore project management tool
.SH SYNOPSIS
.BR kodev
[\fIOPTION\fR] ...
.SH DESCRIPTION
This documentation describes the application management tools for building and
2018-04-26 19:06:55 +02:00
running a Kore project. For information regarding the technical interface and
C bindings, look to
2018-04-26 19:06:55 +02:00
.BR kore(3)
where these functions and structures are described.
2018-04-26 19:06:55 +02:00
.BR Kore
projects may be managed using the following OPTIONS;
2018-04-24 09:56:35 +12:00
.BR create
2018-04-24 09:56:35 +12:00
.RS
Create a new application skeleton with the name that is passed to it. This will
2018-04-26 19:06:55 +02:00
create a new directory with all the files required to begin hacking. See the
\fBGENERATED FILES\fR section for more information.
2018-04-24 09:56:35 +12:00
.RE
.BR build
2018-04-24 09:56:35 +12:00
.RS
2018-04-26 19:06:55 +02:00
Build the application. See the \fBBUILDING\fR section for more information.
2018-04-24 09:56:35 +12:00
.RE
.BR run
2018-04-24 09:56:35 +12:00
.RS
2018-04-26 19:06:55 +02:00
Start the application in the foreground. See the \fBRUNNING\fR section for
more information.
2018-04-24 09:56:35 +12:00
.RE
.BR reload
2018-04-24 09:56:35 +12:00
.RS
2018-04-26 19:06:55 +02:00
Reload the application. This is a shortcut to sending SIGHUP to the parent
process (see kore_pid).
2018-04-24 09:56:35 +12:00
.RE
.BR info
.RS
2018-04-26 19:06:55 +02:00
Show information about the application configuration. Namely; active flavor,
output type, Kore features, Kore source and Kore binary.
2018-04-24 09:56:35 +12:00
.RE
.BR clean
.RS
Cleanup the build files.
.RE
2018-04-26 19:06:55 +02:00
.BR flavor
2018-04-24 09:56:35 +12:00
.RS
2018-04-26 19:06:55 +02:00
Switch between build flavors with the argument being the new flavor.
2018-04-24 09:56:35 +12:00
.RE
.BR help
2018-04-24 09:56:35 +12:00
.RS
Show the help synopsis.
2018-04-24 09:56:35 +12:00
.RE
.BR \-p
.RS
Option used in conjunction with \fBcreate\fR to generate an application for use
2018-04-26 19:06:55 +02:00
with the
2018-04-24 09:56:35 +12:00
.BR pyko
2018-04-26 19:06:55 +02:00
Kore framework.
2018-04-24 09:56:35 +12:00
.RE
2018-04-26 19:06:55 +02:00
.SH GENERATED FILES
Executing the
.BR create
command will generate several new files under the directory matching the
application name specified.
These files are:
.RS
2018-04-26 19:06:55 +02:00
.BR conf/build.conf
.RS
The build configuration.
.RE
2018-04-26 19:06:55 +02:00
.BR conf/app.conf
.RS
The Kore application configuration.
.RE
2018-04-26 19:06:55 +02:00
.BR src/app.c
.RS
The initial placeholder source code.
.RE
2018-04-26 19:06:55 +02:00
.BR cert/server.pem
.RS
The self-signed auto-generated x509 certificate.
.RE
2018-04-26 19:06:55 +02:00
.BR cert/key.pem
.RS
The key matching the self-signed x509 certificate.
.RE
2018-04-26 19:06:55 +02:00
.BR dh2048.pem
.RS
The 2048-bit DH parameters used by TLS.
.RE
.RE
2018-04-26 19:06:55 +02:00
If you specify the
.BR -p
flag the generated files will be for use with
.BR pyko
instead.
2018-04-26 19:06:55 +02:00
Those files are:
2018-04-26 19:06:55 +02:00
.RS
.BR kore.conf
.RS
The Kore application configuration.
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR handlers.py
.RS
The initial placeholder python page handler.
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR __init__.py
.RS
The python initialization code. Sets up the kore listener, etc.
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR cert/server.pem
.RS
The self-signed auto-generated x509 certificate.
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR cert/key.pem
.RS
The key matching the self-signed x509 certificate.
.RE
.RE
.RS
.BR dh2048.pem
.RS
The 2048-bit DH parameters used by TLS.
.RE
.RE
2018-04-26 19:06:55 +02:00
.SH BUILDING
Executing the
.BR build
command will build your application. How this happens is instructed by
the
.BR conf/build.conf
configuration file. This file supports the following directives:
.RS
.BR single_binary
[yes|no]
.RS
If set to \fByes\fR the build system will produce a single binary containing
both your application code and the Kore code allowing you to distribute
your application more easily.
2018-04-26 19:06:55 +02:00
If set to \fBno\fR the build system will produce a standard dynamicly
linked library that will be loaded into Kore at runtime.
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR kore_source
[path]
.RS
Must be set to point to the a Kore source code directory. Used only if
.BR single_binary
option is set to \fByes\fR.
2018-04-26 19:06:55 +02:00
.BR Example:
kore_source=/home/joris/src/kore
.RE
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR kore_flavor
[build options]
.RS
Defines the build arguments for building Kore. Used only if
.BR single_binary
option is set to \fByes\fR.
2018-04-26 19:06:55 +02:00
.BR Example:
kore_flavor=NOTLS=1
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR cflags
.RS
Standard
.BR CFLAGS
used when compiling the application source code.
.RE
.RE
2018-04-26 19:06:55 +02:00
.RS
.BR ldflags
.RS
Standard
.BR LDFLAGS
used when linking the application source code.
.RE
.RE
2018-04-26 19:06:55 +02:00
Note that the
.BR build
command obeys the environment variables
.BR CC
and
.BR CXX
2018-04-26 19:06:55 +02:00
.SH RUNNING
Executing the
.BR run
command will start your application in the foreground.
What binary it executes depends
on whether or not the
.BR single_binary
flag was set in build configuration. If the
.BR single_binary
flag was enabled the
.BR run
command will execute the binary produced by the build system. If the
.BR single_binary
flag was not enabled the
.BR run
command will execute the
.BR $PREFIX/bin/kore
binary.
In both cases the
.BR run
command will pass the \fB\-fnr\fR command line options to the binary.
.RE
.SH EXAMPLES
2018-04-26 19:06:55 +02:00
Changing flavor of the build;
.RS
2018-04-26 19:06:55 +02:00
$ kodev flavor osx
.RE
Creating a new application 'app' with \fBpyko\fR support;
.RS
2018-04-26 19:06:55 +02:00
$ kodev create \-p app
.RE
Building your application;
.RS
$ kodev build
.RE
2018-04-24 09:56:35 +12:00
.SH REPORTING BUGS, CONTRIBUTING && MORE
If you run into any bugs, have suggestions or patches, please contact me at
.BR <joris@coders.se>
More information can be found at
.BR <https://kore.io/>
.SH AUTHOR
2018-04-26 19:06:55 +02:00
.BR Kore
2018-04-24 09:56:35 +12:00
developed by Joris Vink
.BR <joris@coders.se>
Manpage authored by Guy Nankivell
.BR <guynankivell@gmail.com>
.SH LICENCE
Usage of this software is provided under the
.BR ISC
license which may be found, with the source, at
.BR <https://github.com/jorisvink/kore>