summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-07-01 22:56:09 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-07-01 22:56:09 +0200
commit47a035516f60bbe3c819843ef237153b80199bb7 (patch)
treeb96a22e40fbd34e35ef9e394c27d8525d4d6290a /bin
parent5d7886a9b8b4fe710c4f73d30fa3aebeabf8107b (diff)
bin/envstore: Added some newlines for better readability
Diffstat (limited to 'bin')
-rwxr-xr-xbin/envstore5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/envstore b/bin/envstore
index 87f797a..53958a7 100755
--- a/bin/envstore
+++ b/bin/envstore
@@ -71,9 +71,11 @@ if command == "show":
for k, v in store.iteritems():
print k + "\t\t" + v
print "%i entries" % len(store)
+
elif command == "eval":
for k, v in store.iteritems():
print "export " + k + "=" + v
+
elif command == "save":
arg = get_key()
@@ -89,6 +91,7 @@ elif command == "save":
store[key] = value
save_store()
+
elif command == "rm":
key = get_key()
@@ -99,8 +102,10 @@ elif command == "rm":
sys.exit(4)
save_store()
+
elif command == "clear":
os.remove(store_filename)
os.remove(raw_filename)
+
else:
usage()