Browse Source

[3028] Hide the print_settings command

It is a testing command only, user is expected to examine configuration
by config show. So don't show it.
Michal 'vorner' Vaner 11 years ago
parent
commit
e15d409632
2 changed files with 2 additions and 5 deletions
  1. 2 0
      src/bin/cmdctl/cmdctl.py.in
  2. 0 5
      src/bin/cmdctl/cmdctl.spec.pre.in

+ 2 - 0
src/bin/cmdctl/cmdctl.py.in

@@ -371,6 +371,8 @@ class CommandControl():
             self._serving = False
 
         elif command == 'print_settings':
+            # This is a hidden testing command. It does nothing useful, just
+            # returns the current configuration.
             answer = ccsession.create_answer(0, self._cmdctl_config_data)
         else:
             answer = ccsession.create_answer(1, 'unknown command: ' + command)

+ 0 - 5
src/bin/cmdctl/cmdctl.spec.pre.in

@@ -24,11 +24,6 @@
     ],
     "commands": [
       {
-        "command_name": "print_settings",
-        "command_description": "Print some_string and some_int to stdout",
-        "command_args": []
-      },
-      {
         "command_name": "shutdown",
         "command_description": "shutdown cmdctl",
         "command_args": [