Added manpage.
* Added a simple manpage * Updated PKGBUILD to install manpage. Signed-off-by: Kolaer <overlordin777@gmail.com>
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
.idea
|
.idea
|
||||||
pkg
|
pkg
|
||||||
*.pkg.tar.xz
|
*.pkg.tar.xz
|
||||||
|
/docs/*gz
|
||||||
|
9
PKGBUILD
9
PKGBUILD
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: s3rius <win10@list.com>
|
# Maintainer: s3rius <win10@list.com>
|
||||||
pkgname=awatch
|
pkgname=awatch
|
||||||
pkgver=0.1.0
|
pkgver=0.3.1
|
||||||
pkgrel=2
|
pkgrel=2
|
||||||
pkgdesc="Anime watcher."
|
pkgdesc="Anime watcher."
|
||||||
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
|
arch=('i686' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
|
||||||
@ -10,16 +10,17 @@ options=(!emptydirs)
|
|||||||
depends=()
|
depends=()
|
||||||
makedepends=(
|
makedepends=(
|
||||||
'rust'
|
'rust'
|
||||||
|
'cargo'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$startdir/"
|
cd "$startdir/"
|
||||||
pwd
|
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
gzip -c docs/awatch.1 > docs/awatch.1.gz
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p "$pkgdir/usr/bin"
|
install -Dm 755 "$startdir/target/release/awatch" -t "$pkgdir/usr/bin"
|
||||||
cp "$startdir/target/release/awatch" "$pkgdir/usr/bin"
|
install -Dm 755 "$startdir/docs/awatch.1.gz" -t "$pkgdir/usr/share/man/man1"
|
||||||
}
|
}
|
||||||
|
56
docs/awatch.1
Normal file
56
docs/awatch.1
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.15.
|
||||||
|
.TH AWATCH "1" "May 2020" "awatch 0.3.1" "User Commands"
|
||||||
|
.SH NAME
|
||||||
|
awatch \- manual page for awatch 0.3.1
|
||||||
|
.SH DESCRIPTION
|
||||||
|
awatch 0.3.1
|
||||||
|
Here to help you with watching anime on your PC.
|
||||||
|
.SS "USAGE:"
|
||||||
|
.IP
|
||||||
|
awatch [SUBCOMMAND]
|
||||||
|
.SS "FLAGS:"
|
||||||
|
.TP
|
||||||
|
\fB\-h\fR, \fB\-\-help\fR
|
||||||
|
Prints help information
|
||||||
|
.TP
|
||||||
|
\fB\-V\fR, \fB\-\-version\fR
|
||||||
|
Prints version information
|
||||||
|
.SS "SUBCOMMANDS:"
|
||||||
|
.TP
|
||||||
|
completion
|
||||||
|
Generate autocompletion for your shell. If no shell was specified, then it will try to recognize
|
||||||
|
it automatically.
|
||||||
|
Supports bash, zsh, fish, powershell, elvish.
|
||||||
|
.TP
|
||||||
|
help
|
||||||
|
Prints this message or the help of the given subcommand(s)
|
||||||
|
.TP
|
||||||
|
init
|
||||||
|
Initialize config
|
||||||
|
|
||||||
|
There are some patterns, that you can use in command specification:
|
||||||
|
|
||||||
|
{} - current episode file's name;
|
||||||
|
|
||||||
|
{n} - current episode number (starts from 0);
|
||||||
|
|
||||||
|
{n+} - current episode number (starts from 1);
|
||||||
|
|
||||||
|
{zn} - current episode number (starts from 0; paddes left with 0s, if needed);
|
||||||
|
|
||||||
|
{zn+} - current episode number (starts from 1; paddes left with 0s, if needed);
|
||||||
|
.TP
|
||||||
|
next
|
||||||
|
Increase episode counter by one
|
||||||
|
.TP
|
||||||
|
play
|
||||||
|
Play next episode
|
||||||
|
.TP
|
||||||
|
prev
|
||||||
|
Decrease episode counter by one
|
||||||
|
.TP
|
||||||
|
reset
|
||||||
|
Set episode to 0
|
||||||
|
.TP
|
||||||
|
update
|
||||||
|
Update saved config
|
Reference in New Issue
Block a user