From 3f6b986c73b2473378179c194e361aa761fa94de Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Jun 2011 18:42:53 +0200 Subject: Raps2.pm: Minor documentation structure change --- lib/App/Raps2.pm | 58 +++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/lib/App/Raps2.pm b/lib/App/Raps2.pm index cf5a404..6600a8a 100644 --- a/lib/App/Raps2.pm +++ b/lib/App/Raps2.pm @@ -390,6 +390,47 @@ B of key setup, passed on to App::Raps2::Password(3pm). Reads $file (lines with key/value separated by whitespace) and returns a hash with its key/value pairs. +=item $raps2->get_master_password() + +Asks the user for the master passphrase. + +=item $raps2->pw_add(I<%data>) + +Write an account as specified by I to the store. Requires +B to have been called before. + +The following I keys are possible: + +=over + +=item B => I (mandatory) + +=item B => I (mandatory) + +=item B => I | B => I (one must be set) + +=item B => I (optional) + +=item B => I (optional) + +=item B => I (optiona) + +=back + +=item $raps2->pw_get(B => I | B => I) + +Loads a password from I (or account I), requires +B to have been called before. Returns a hashref +containing its url, login and decrypted password and extra. + +=back + +=head2 INTERNAL + +You usually don't need to call these methods by yourself. + +=over + =item $raps2->sanity_check() Create working directories (~/.config/raps2 and ~/.local/share/raps2, or the @@ -398,10 +439,6 @@ Automatically called by B. Calls B if no raps2 config was found. -=item $raps2->get_master_password() - -Asks the user for the master passphrase. - =item $raps2->create_config() Creates a default config and asks the user to set a master password. @@ -418,19 +455,6 @@ Returns the App::Raps2::Password(3pm) object. Returns the App::Raps2::UI(3pm) object. -=item $raps2->pw_add(I<%data>) - -Write an account as specified by I to the store. Requires -B to have been called before. Requires I keys are -password, salt and either file or name, plus the optional url, login and -extra. - -=item $raps2->pw_get(B => I | B => I) - -Loads a password from I (or account I), requires -B to have been called before. Returns a hashref -containing its url, login and decrypted password and extra. - =item $raps2->cmd_add(I<$name>) Adds a new password file called $name. -- cgit v1.2.3