Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / scripts / setup / manage_webhook.php
blobafe662617a5b42673d8b4a4f90430800f07b3ffb
1 #!/usr/bin/env php
2 <?php
4 $root = dirname(dirname(dirname(__FILE__)));
5 require_once $root.'/scripts/init/init-script.php';
7 $args = new PhutilArgumentParser($argv);
8 $args->setTagline(pht('manage webhooks'));
9 $args->setSynopsis(<<<EOSYNOPSIS
10 **webhook** __command__ [__options__]
11 Manage webhooks.
13 EOSYNOPSIS
15 $args->parseStandardArguments();
17 $workflows = id(new PhutilClassMapQuery())
18 ->setAncestorClass('HeraldWebhookManagementWorkflow')
19 ->execute();
20 $workflows[] = new PhutilHelpArgumentWorkflow();
21 $args->parseWorkflows($workflows);