view man/scictl.8.in @ 14:cb2d7f365b7c

make: disable SQLite extensions/threads
author David Demelier <markand@malikania.fr>
date Wed, 30 Jun 2021 14:41:53 +0200
parents 67348ec46425
children 081e1c258e64
line wrap: on
line source

.\"
.\" Copyright (c) 2021 David Demelier <markand@malikania.fr>
.\"
.\" Permission to use, copy, modify, and/or distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd June 30, 2021
.Dt SCICTL 8
.Os
.\" NAME
.Sh NAME
.Nm scictl
.Nd command line client to scid
.\" SYNOPSIS
.Sh SYNOPSIS
.\" job-add
.Nm
.Cm job-add
.Ar project
.Ar tag
.\" job-todo
.Nm
.Cm job-todo
.Ar worker
.\" jobresult-add
.Nm
.Cm jobresult-add
.Ar jobid
.Ar worker
.Ar exitcode
.Ar console
.\" project-add
.Nm
.Cm project-add
.Ar name
.Ar desc
.Ar url
.Ar script
.\" project-info
.Nm
.Cm project-info
.Ar name
.\" project-list
.Nm
.Cm project-list
.\" project-update
.Nm
.Cm project-update
.Ar name
.Ar key
.Ar value
.\" worker-add
.Nm
.Cm worker-add
.Ar name
.Ar desc
.\" worker-list
.Nm
.Cm worker-list
.\" DESCRIPTION
.Sh DESCRIPTION
The
.Nm
utility is a command line client that connects to
.Xr scid 8
daemon. It is best used in conjunction with automated programs (such as cron)
and SCM integration to add new jobs to execute. It is also used as
administrative utility to create projects and workers.
.Pp
It is part of the
.Xr sci 7
continuous integration framework.
.Pp
The following options are available
.Em before
the command name:
.Bl -tag
.It Fl s Ar path
Connect to the UNIX local socket specified by
.Ar path .
.El
.\" COMMANDS
.Sh COMMANDS
All commands are designed to return a human readable format but is guaranteed to
stay compatible across new versions. It can be used in scripts as well.
.Bl -tag -width project-update
.\" job-add
.It Cm job-add
Create a new job for the given
.Ar project
using the user arbitrary
.Ar tag
identifier.
.\" job-todo
.It Cm job-todo
List jobs that must be performed by the given
.Ar worker .
Jobs that were created earlier than the worker will not be listed to avoid
evaluating a possible high number of jobs.
.\" jobresult-add
.It Cm jobresult-add
Add a job result manually for the job id specified by
.Ar jobid
that was executed by the given
.Ar worker
The
.Ar exitcode
argument should be the project script exit status. The
.Ar console
argument should point to a file with the script's standard output and error. If
specified to
.Dq -
the standard input is read instead.
.\" project-add
.It Cm project-add
Create a new project with
.Ar name ,
an user description set with
.Ar desc ,
a website arbitrary
.Ar url ,
and a script code to execute specified by file
.Ar script .
If the
.Ar script
argument is set to
.Dq -
the standard input is read instead.
.\" project-info
.It Cm project-info
Get the detailed information, including the script code from
.Ar project .
.\" project-list
.It Cm project-list
List all projects, excluding the script code.
.\" project-update
.It Cm project-update
Update an existing
.Ar project
by setting its new fields. The
.Ar key
argument should be one of the argument specified in the
.Cm project-add
command. For example, to update the description of a project one should
specify
.Dq desc
as
.Ar name
argument and a new description as
.Ar key .
.Pp
Example:
.Bd -literal -offset indent
scictl project-update example desc "New description"
.Ed
.\" worker-add
.It Cm worker-add
Create a new worker with
.Ar name
user identifier and an arbirary
.Ar desc
description.
.\" worker-list
.It Cm worker-list
List all workers present on the system. It does not indicate if those workers
are actually running.
.El
.\" SEE ALSO
.Sh SEE ALSO
.Xr sci 7 ,
.Xr scid 8 ,
.Xr sciwebd 8 ,
.Xr sciworkerd 8