From: vrana Date: Fri, 19 Oct 2012 16:50:56 +0000 (-0700) Subject: Require defining workflows' synopses and help X-Git-Tag: conduit-6~79 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=94d283a453ec35364ebdaea56ae6cc22853e3b35;p=arcanist.git Require defining workflows' synopses and help Test Plan: Deleted `getCommandSynopses()` from workflow, ran `arc help`. Reviewers: epriestley, edward Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3739 --- diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index 46eff56b..2dc793e0 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -91,6 +91,20 @@ abstract class ArcanistBaseWorkflow { */ abstract public function getWorkflowName(); + /** + * Return console formatted string with all command synopses. + * + * @return string 6-space indented list of available command synopses. + */ + abstract public function getCommandSynopses(); + + /** + * Return console formatted string with command help printed in `arc help`. + * + * @return string 10-space indented help to use the command. + */ + abstract public function getCommandHelp(); + /* -( Conduit )------------------------------------------------------------ */ @@ -470,14 +484,6 @@ abstract class ArcanistBaseWorkflow { return $this->arcanistConfiguration; } - public function getCommandSynopses() { - return get_class($this).": Undocumented"; - } - - public function getCommandHelp() { - return get_class($this).": Undocumented"; - } - public function requiresWorkingCopy() { return false; }