summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-04 20:27:54 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-04 20:28:37 -0200
commit1b24dedf6c343a62166661322aa092494471a830 (patch)
tree0aa1ecb4f265289b54f7dbdf62a71f8f306bdd8f
parent6f3ba0425a7d3577f4adde66ee66c2460de8690f (diff)
downloadkeyringer-1b24dedf6c343a62166661322aa092494471a830.tar.gz
keyringer-1b24dedf6c343a62166661322aa092494471a830.tar.bz2
Using 'init' instead of 'create'
-rw-r--r--README6
-rwxr-xr-xkeyringer8
2 files changed, 7 insertions, 7 deletions
diff --git a/README b/README
index fe02c50..e31a99d 100644
--- a/README
+++ b/README
@@ -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.
diff --git a/keyringer b/keyringer
index 601c5be..ed95a09 100755
--- a/keyringer
+++ b/keyringer
@@ -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