privoxy: Remove get-enabled from actions

This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2015-07-19 19:56:05 -04:00
1 parent cedec9b624
commit 4906384b39
3 files changed
+14 -18

No files matched your search

-8
View File
@@ -37,8 +37,6 @@ def parse_arguments():
subparsers.add_parser('setup',
help='Perform Privoxy configuration setup')
subparsers.add_parser('get-enabled',
help='Get whether Privoxy service is enabled')
subparsers.add_parser('enable', help='Enable Privoxy service')
subparsers.add_parser('disable', help='Disable Privoxy service')
@@ -65,12 +63,6 @@ def subcommand_setup(_):
action_utils.service_restart('privoxy')
def subcommand_get_enabled(_):
"""Get whether service is enabled."""
is_enabled = action_utils.service_is_enabled('privoxy')
print('yes' if is_enabled else 'no')
def subcommand_enable(_):
"""Start service."""
action_utils.service_enable('privoxy')