Add GitcClientCommand class for GITC-specific commands

These won't show up as common commands in the help text unless in a GITC
client, and will refuse to execute.

Change-Id: Iffe82adcc9d6ddde9cb4b204f83ff018042bdab0
This commit is contained in:
Dan Willemsen
2015-08-31 15:45:06 -07:00
parent 7b01b2fd01
commit 79360640f4
4 changed files with 21 additions and 7 deletions

View File

@ -231,7 +231,12 @@ class MirrorSafeCommand(object):
and does not require a working directory.
"""
class RequiresGitcCommand(object):
class GitcAvailableCommand(object):
"""Command that requires GITC to be available, but does
not require the local client to be a GITC client.
"""
class GitcClientCommand(object):
"""Command that requires the local client to be a GITC
client.
"""