Skip to content

Commit

Permalink
add documentation for basic CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Oct 12, 2020
1 parent e271aac commit 6eec7d7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/source/__main__.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
__main__
========

.. automodule:: pykeepass.__main__
:members:
31 changes: 31 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ PyKeePass
exceptions
baseelement
kdbx_parsing/*
__main__

.. image:: https://travis-ci.org/libkeepass/pykeepass.svg?branch=master
:target: https://travis-ci.org/libkeepass/pykeepass
Expand Down Expand Up @@ -368,6 +369,36 @@ string containing algorithm used to encrypt database. Possible values are ``aes

create a new database at ``filename`` with supplied credentials. Returns ``PyKeePass`` object

Console usage (CLI)
-------------------

PyKeePass allows you to manipulate KeePass database straight from the console
via simple set of commands:

.. code:: shell
# display help
$ pykeepass --help
# show all items as a tree in CLI
$ pykeepass -p password -f ~/Desktop/mydatabase.kdbx tree
[Root]
|-- [foobar_group]
| |-- [subgroup/name]
| | |-- subentry
| | |-- subentry2
| | `-- foobar_entry
| |
| |-- group_entry
| `-- foobar_entry
|
|-- [foobar_group2]
|-- [Работа]
| `-- Тест
|
|-- root_entry
`-- test/name
Tests
-----

Expand Down

0 comments on commit 6eec7d7

Please sign in to comment.