view paster.1.in @ 66:a14b5b7aa80e

man: add pasterd-themes
author David Demelier <markand@malikania.fr>
date Sat, 18 Jun 2022 09:42:05 +0200
parents ecb0b90d94d8
children
line wrap: on
line source

.\"
.\" Copyright (c) 2020-2022 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 06 February, 2020
.Dt PASTER 1
.Os
.\" NAME
.Sh NAME
.Nm paster
.Nd simple paste service client
.\" SYNOPSIS
.Sh SYNOPSIS
.Nm
.Op Fl LDpv
.Op Fl a Ar author
.Op Fl l Ar language
.Op Fl d Ar duration
.Op Fl t Ar title
.Ar filename
.Ar host
.\" DESCRIPTION
.Sh DESCRIPTION
The
.Nm
tool is the convenient brother to
.Nm pasterd ,
it will paste some content into an instance.
.Pp
The
.Ar filename
argument can points to a file whose content will be pasted, if it is set to
.Dq -
then standard input is read instead.
.Pp
The
.Ar host
argument is a URL where a
.Nm pasterd
instance is running.
.Pp
Available options:
.Bl -tag -width Ds
.It Fl L
List all supported languages.
.It Fl D
List all supported durations.
.It Fl p
Store the paste as public (default is private).
.It Fl v
Be more verbose.
.It Fl a Ar author
Sets the author, defaults to
.Dq Anonymous .
.It Fl l Ar language
Sets the code snippet language, defaults to
.Dq "nohighlight" .
.It Fl d Ar duration
Sets the paste lifetime, defaults to
.Dq "day" .
.It Fl t Ar title
Sets a title to the paste, defaults to
.Dq "Untitled" .
.\" EXAMPLES
.Sh EXAMPLES
.Ss Paste the main.sh script shell with a title and an author.
.Bd -literal -offset
paster -t "Some shell script" -a Francis -l shell main.sh http://example.org
.Ed
.Ss Read standard input and paste it.
.Bd -literal -offset
grep error logs.txt | paster - http://example.org
.Ed
.Ss Paste a public file file with a short duration.
.Bd -literal -offset
paster -p -d hour some-data.txt http://example.org
.Ed
.\" AUTHORS
.Sh AUTHORS
.Nm
was written by David Demelier <markand@malikania.fr>
.\" SEE ALSO
.Sh SEE ALSO
.Xr pasterd 8