Pārlūkot izejas kodu

Add more meat to documentation

[ci skip]
oz123 10 gadi atpakaļ
vecāks
revīzija
01f9c6aa26
1 mainītis faili ar 46 papildinājumiem un 0 dzēšanām
  1. 46 0
      docs/source/tutorial.rst

+ 46 - 0
docs/source/tutorial.rst

@@ -40,3 +40,49 @@ a simple loop waiting for user commands. You can see all the commands by typing:
 
 Most commands have a single or two letter alias which is easy to remember. 
 
+As for a start you would probably like to store some passwords in your database, all 
+you need to do is type the command ``new`` (or the alias ``n``), and then insert the information
+as promted::
+
+    pwman> new
+    Username: oz123
+    Password: 
+    Url: example.org
+    Notes: Your notes      
+    Tags: bank private
+
+Note the password is typed in without echoing it. Also note that two tags were 
+separated by a space. Now, you can list your database entries with::
+    
+    pwman> ls
+
+    ID  USER        URL                 TAGS    
+    1   oz123       example.org         bank, private
+
+After a while you have had many new nodes inserted in your database::
+
+
+    ID  USER        URL                     TAGS    
+    1   oz123       example.org             bank, private
+    2   oz123       intranet.workplace.biz  work
+    3   oz123       shopping.com            shopping 
+
+Now searching for a searching entry can become quite tiresome. Hence, you can 
+minimize the number of entries display by applying a filter to the ``list`` 
+command::
+
+    pwman> ls work
+
+    ID  USER        URL                 TAGS    
+    2   oz123       intranet.workplace.biz  workplace
+
+If you don't remember all the tags you created you can list the tags using the 
+command ``tags``::
+    
+    pwman> tags
+    Tags:
+    bank,
+    private,
+    shopping
+
+