From 94d283a453ec35364ebdaea56ae6cc22853e3b35 Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 19 Oct 2012 09:50:56 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistBaseWorkflow.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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; } -- 2.43.0