diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-04 20:27:54 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-04 20:28:37 -0200 |
commit | 1b24dedf6c343a62166661322aa092494471a830 (patch) | |
tree | 0aa1ecb4f265289b54f7dbdf62a71f8f306bdd8f | |
parent | 6f3ba0425a7d3577f4adde66ee66c2460de8690f (diff) | |
download | keyringer-1b24dedf6c343a62166661322aa092494471a830.tar.gz keyringer-1b24dedf6c343a62166661322aa092494471a830.tar.bz2 |
Using 'init' instead of 'create'
-rw-r--r-- | README | 6 | ||||
-rwxr-xr-x | keyringer | 8 |
2 files changed, 7 insertions, 7 deletions
@@ -30,10 +30,10 @@ Creating a keyringer repository ------------------------------- The first step will would like to take is to setup a keyring. Keyringer suport -management of multiple isolated keyrings. To create a new keyring (or register +management of multiple isolated keyrings. To start a new keyring (or register an existing one at your config file), type - keyringer <keyring> create <path> [remote] + keyringer <keyring> init <path> [remote] This will @@ -42,7 +42,7 @@ This will For example, - keyringer friends create $HOME/keyrings/friends + keyringer friends init $HOME/keyrings/friends will create an alias "friends" pointing to $HOME/keyrings/friends. Call all other keyring actions using this alias. @@ -18,13 +18,13 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -function keyringer_create { +function keyringer_init { BASEDIR="$3" URL="$4" # Parse if [ -z "$BASEDIR" ]; then - echo "Usage: $BASENAME <keyring> create <path> [url]" + echo "Usage: $BASENAME <keyring> init <path> [url]" exit 1 elif grep -q -e "^$KEYRING=" $CONFIG; then echo "Keyring $KEYRING already defined" @@ -99,8 +99,8 @@ if [ -z "$ACTION" ]; then exit 1 fi -if [ "$ACTION" == "create" ]; then - keyringer_create $* +if [ "$ACTION" == "init" ]; then + keyringer_init $* elif keyringer_has_action $ACTION; then keyringer_dispatch $* else |