aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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