mirror of
https://github.com/verdigado/organization_folders.git
synced 2024-12-06 11:22:41 +01:00
improved occ command names
This commit is contained in:
parent
4dad10d23f
commit
dc10742476
14 changed files with 22 additions and 22 deletions
|
@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
|
|||
class GetOrganizationRole extends BaseCommand {
|
||||
protected function configure(): void {
|
||||
$this
|
||||
->setName('organization-folders:get-organization-role')
|
||||
->setName('organization-folders:organization-roles:get')
|
||||
->setDescription('Get a specific organization role by id')
|
||||
->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query')
|
||||
->addArgument('role-id', InputArgument::REQUIRED, '');
|
||||
|
|
|
@ -11,7 +11,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
|
|||
class ListOrganizationProviders extends BaseCommand {
|
||||
protected function configure(): void {
|
||||
$this
|
||||
->setName('organization-folders:list-organization-providers')
|
||||
->setName('organization-folders:organization-providers:list')
|
||||
->setDescription('List all registered organization providers');
|
||||
parent::configure();
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
|
|||
class ListOrganizationRoles extends BaseCommand {
|
||||
protected function configure(): void {
|
||||
$this
|
||||
->setName('organization-folders:list-organization-roles')
|
||||
->setName('organization-folders:organization-roles:list')
|
||||
->setDescription('List all roles in a specific organization')
|
||||
->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query')
|
||||
->addArgument('organization-id', InputArgument::REQUIRED, 'organization id to query roles of');
|
||||
|
|
|
@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
|
|||
class ListOrganizations extends BaseCommand {
|
||||
protected function configure(): void {
|
||||
$this
|
||||
->setName('organization-folders:list-organizations')
|
||||
->setName('organization-folders:organizations:list')
|
||||
->setDescription('List all organizations provided by a specific organization provider')
|
||||
->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query')
|
||||
->addArgument('parent-organization-id', InputArgument::OPTIONAL, 'parent organization to fetch child organizations of. Using top-level if omitted');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue