Add SiteCmd CLI command for ZeroFrame API calls

This commit is contained in:
shortcutme 2018-04-03 14:50:58 +02:00
parent a65d21d7e4
commit 8c0c0868e3
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -131,6 +131,12 @@ class Config(object):
action = self.subparsers.add_parser("siteVerify", help='Verify site files using sha512: address') action = self.subparsers.add_parser("siteVerify", help='Verify site files using sha512: address')
action.add_argument('address', help='Site to verify') action.add_argument('address', help='Site to verify')
# SiteCmd
action = self.subparsers.add_parser("siteCmd", help='Execute a ZeroFrame API command on a site')
action.add_argument('address', help='Site address')
action.add_argument('cmd', help='API command name')
action.add_argument('parameters', help='Parameters of the command', nargs='?')
# dbRebuild # dbRebuild
action = self.subparsers.add_parser("dbRebuild", help='Rebuild site database cache') action = self.subparsers.add_parser("dbRebuild", help='Rebuild site database cache')
action.add_argument('address', help='Site to rebuild') action.add_argument('address', help='Site to rebuild')