0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-21 11:37:26 +01:00

improved occ command names

This commit is contained in:
Jonathan Treffler 2024-11-05 14:05:04 +01:00
parent 4dad10d23f
commit dc10742476
14 changed files with 22 additions and 22 deletions

View file

@ -23,15 +23,15 @@
<command>OCA\OrganizationFolders\Command\OrganizationFolder\ListOrganizationFolders</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\CreateOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\UpdateOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\RemoveOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\DeleteOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\FixACLsOfOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\Resource\CreateResource</command>
<command>OCA\OrganizationFolders\Command\Resource\ListResources</command>
<command>OCA\OrganizationFolders\Command\Resource\UpdateResource</command>
<command>OCA\OrganizationFolders\Command\Resource\RemoveResource</command>
<command>OCA\OrganizationFolders\Command\Resource\DeleteResource</command>
<command>OCA\OrganizationFolders\Command\ResourceMember\CreateResourceMember</command>
<command>OCA\OrganizationFolders\Command\ResourceMember\ListResourceMembers</command>
<command>OCA\OrganizationFolders\Command\ResourceMember\RemoveResourceMember</command>
<command>OCA\OrganizationFolders\Command\ResourceMember\DeleteResourceMember</command>
<command>OCA\OrganizationFolders\Command\OrganizationProvider\ListOrganizationProviders</command>
<command>OCA\OrganizationFolders\Command\OrganizationProvider\ListOrganizations</command>
<command>OCA\OrganizationFolders\Command\OrganizationProvider\ListOrganizationRoles</command>

View file

@ -9,11 +9,11 @@ use Symfony\Component\Console\Output\OutputInterface;
use OCA\OrganizationFolders\Command\BaseCommand;
class RemoveOrganizationFolder extends BaseCommand {
class DeleteOrganizationFolder extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:remove')
->setDescription('Remove a new organization folder')
->setName('organization-folders:delete')
->setDescription('Delete an organization folder')
->addArgument('id', InputArgument::REQUIRED, 'Id of the organization folder to remove');
}

View file

@ -14,7 +14,7 @@ class UpdateOrganizationFolder extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:update')
->setDescription('Update a organization folder')
->setDescription('Update an organization folder')
->addArgument('id', InputArgument::REQUIRED, 'Id of the organization folder to update')
->addOption('name', null, InputOption::VALUE_OPTIONAL, 'New name of the organization folder')
->addOption('quota', null, InputOption::VALUE_OPTIONAL, 'New storage quota of the organization folder')

View file

@ -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, '');

View file

@ -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();
}

View file

@ -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');

View file

@ -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');

View file

@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class CreateResource extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:create-resource')
->setName('organization-folders:resources:create')
->setDescription('Create a new resource in organization folder')
->addOption('organization-folder', null, InputOption::VALUE_REQUIRED, 'Id of organization folder to create resource in')
->addOption('type', null, InputOption::VALUE_REQUIRED, 'Type of resource (valid values: folder)')

View file

@ -9,11 +9,11 @@ use Symfony\Component\Console\Output\OutputInterface;
use OCA\OrganizationFolders\Command\BaseCommand;
class RemoveResource extends BaseCommand {
class DeleteResource extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:remove-resource')
->setDescription('Remove a resource')
->setName('organization-folders:resources:delete')
->setDescription('Delete a resource')
->addArgument('id', InputArgument::REQUIRED, 'Id of the resource');
}

View file

@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class ListResources extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:list-resources')
->setName('organization-folders:resources:list')
->addArgument('organization-folder-id', InputArgument::REQUIRED, 'Id of Organization Folder')
->addArgument('parent-resource-id', InputArgument::OPTIONAL, 'Id of Organization Folder')
->setDescription('List all resource in organization folder. Only shows one layer of tree at once, provide resource parent id to reveal child resources.');

View file

@ -13,7 +13,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class UpdateResource extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:update-resource')
->setName('organization-folders:resources:update')
->setDescription('Update a resource')
->addArgument('id', InputArgument::REQUIRED, 'Id of the resource to update')
->addOption('name', null, InputOption::VALUE_OPTIONAL, 'New name of resource');

View file

@ -14,7 +14,7 @@ use OCA\OrganizationFolders\Enum\MemberPermissionLevel;
class CreateResourceMember extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:create-resource-member')
->setName('organization-folders:resource-members:create')
->setDescription('Create a new member of resource')
->addOption('resource-id', null, InputOption::VALUE_REQUIRED, 'Id of resource to create member of')
->addOption('permission-level', null, InputOption::VALUE_REQUIRED, 'Permissions level of member (valid values: MEMBER, MANAGER)')

View file

@ -9,11 +9,11 @@ use Symfony\Component\Console\Output\OutputInterface;
use OCA\OrganizationFolders\Command\BaseCommand;
class RemoveResourceMember extends BaseCommand {
class DeleteResourceMember extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:remove-resource-member')
->setDescription('Remove a member of a resource')
->setName('organization-folders:resource-members:delete')
->setDescription('Delete a member of a resource')
->addArgument('id', InputArgument::REQUIRED, 'Id of the resource member');
}

View file

@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class ListResourceMembers extends BaseCommand {
protected function configure(): void {
$this
->setName('organization-folders:list-resource-members')
->setName('organization-folders:resource-members:list')
->addArgument('resource-id', InputArgument::REQUIRED, 'Id of Resource')
->setDescription('List all members of resource.');