aboutsummaryrefslogtreecommitdiff
path: root/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/command/commands.js b/src/command/commands.js
index d27fa58..b2216b7 100644
--- a/src/command/commands.js
+++ b/src/command/commands.js
@@ -55,6 +55,24 @@ function ls(output) {
function set(output, args) {
switch ( args.length ) {
+ case 0: {
+ Object.keys(settings).filter(
+ function(element) {
+ return element !== 'objectName'
+ && typeof settings[element] !== 'function';
+ }
+ ).forEach(output.log);
+ break;
+ }
+ case 1: {
+ Object.keys(settings[args[0]]).filter(
+ function(element) {
+ return element !== 'objectName'
+ && typeof settings[args[0]][element] !== 'function';
+ }
+ ).forEach(output.log);
+ break;
+ }
case 2: {
output.log(settings.read(args[0], args[1]));
break;