Homec4science

Make all bin/* scripts locate their workflows dynamically

Authored by epriestley <git@epriestley.com> on Dec 27 2013, 22:15.

Description

Make all bin/* scripts locate their workflows dynamically

Summary:
Ref T2015. Not directly related to Drydock, but I bumped into this. All these scripts currently enumerate their workflows explicitly.

Instead, use PhutilSymbolLoader to automatically discover workflows. This reduces code duplication and errors (see all the bad extends this diff fixes) and lets third parties add new workflows (not clearly valuable?).

Test Plan: Ran bin/x help for each modified script.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D7840

Details

Committed
epriestley <git@epriestley.com>Dec 27 2013, 22:15
Pushed
aubortJan 31 2017, 17:16
Parents
rPHe397103bf211: Extend all "ManagementWorkflow" classes from a base class
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHce78bf1de4e5: Make all bin/* scripts locate their workflows dynamically (authored by epriestley <git@epriestley.com>).Dec 27 2013, 22:15