docs: update

This commit is contained in:
Dylan Araps 2019-02-25 08:47:00 +02:00
parent 692acfbd0e
commit ca4d980532
2 changed files with 68 additions and 4 deletions

View File

@ -1,5 +1,5 @@
PREFIX ?= /usr PREFIX ?= /usr
# MANDIR ?= $(PREFIX)/share/man MANDIR ?= $(PREFIX)/share/man
DOCDIR ?= $(PREFIX)/share/doc/pash DOCDIR ?= $(PREFIX)/share/doc/pash
all: all:
@ -7,14 +7,14 @@ all:
install: install:
@mkdir -p $(DESTDIR)$(PREFIX)/bin @mkdir -p $(DESTDIR)$(PREFIX)/bin
# @mkdir -p $(DESTDIR)$(MANDIR)/man1 @mkdir -p $(DESTDIR)$(MANDIR)/man1
@mkdir -p $(DESTDIR)$(DOCDIR) @mkdir -p $(DESTDIR)$(DOCDIR)
@cp -p pash $(DESTDIR)$(PREFIX)/bin/pash @cp -p pash $(DESTDIR)$(PREFIX)/bin/pash
# @cp -p pash.1 $(DESTDIR)$(MANDIR)/man1 @cp -p pash.1 $(DESTDIR)$(MANDIR)/man1
@cp -p README.md $(DESTDIR)$(DOCDIR) @cp -p README.md $(DESTDIR)$(DOCDIR)
@chmod 755 $(DESTDIR)$(PREFIX)/bin/pash @chmod 755 $(DESTDIR)$(PREFIX)/bin/pash
uninstall: uninstall:
@rm -rf $(DESTDIR)$(PREFIX)/bin/pash @rm -rf $(DESTDIR)$(PREFIX)/bin/pash
# @rm -rf $(DESTDIR)$(MANDIR)/man1/pash.1 @rm -rf $(DESTDIR)$(MANDIR)/man1/pash.1
@rm -rf $(DESTDIR)$(DOCDIR) @rm -rf $(DESTDIR)$(DOCDIR)

64
pash.1 Normal file
View File

@ -0,0 +1,64 @@
.TH PASH 1
.SH NAME
pash \- simple pasword manager
.SH SYNOPSIS
.B pash
[\fBadd|del|show|list\fR]
[name]
[\fB-ncqhv\fR]
[\fB-l\fR length]
.SH DESCRIPTION
.B pash
simple pasword manager
.SH COMMANDS
.TP
.BR [a]dd
[name]:
Create a new entry in the password store.
.TP
.BR [d]el
[name]:
Delete an entry from the password store.
.TP
.BR [s]how
[name]:
Show password from an entry in the password store.
.TP
.BR [l]ist:
List all entries from the password store.
.TP
.SH OPTIONS
.TP
.BR \-n
Limit passwords to alphanumeric characters.
.TP
.BR \-l
Length of generated passwords.
.TP
.BR \-c
Copy password to clipboard.
.TP
.BR \-q
Don't print password to stdout.
.TP
.BR \-h
Show usage and exit.
.TP
.BR \-v
Show version and exit.
.TP