0
0
Fork 0
mirror of https://github.com/verdigado/organization_folders.git synced 2024-11-21 20:28:11 +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\ListOrganizationFolders</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\CreateOrganizationFolder</command> <command>OCA\OrganizationFolders\Command\OrganizationFolder\CreateOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\OrganizationFolder\UpdateOrganizationFolder</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\OrganizationFolder\FixACLsOfOrganizationFolder</command>
<command>OCA\OrganizationFolders\Command\Resource\CreateResource</command> <command>OCA\OrganizationFolders\Command\Resource\CreateResource</command>
<command>OCA\OrganizationFolders\Command\Resource\ListResources</command> <command>OCA\OrganizationFolders\Command\Resource\ListResources</command>
<command>OCA\OrganizationFolders\Command\Resource\UpdateResource</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\CreateResourceMember</command>
<command>OCA\OrganizationFolders\Command\ResourceMember\ListResourceMembers</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\ListOrganizationProviders</command>
<command>OCA\OrganizationFolders\Command\OrganizationProvider\ListOrganizations</command> <command>OCA\OrganizationFolders\Command\OrganizationProvider\ListOrganizations</command>
<command>OCA\OrganizationFolders\Command\OrganizationProvider\ListOrganizationRoles</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; use OCA\OrganizationFolders\Command\BaseCommand;
class RemoveOrganizationFolder extends BaseCommand { class DeleteOrganizationFolder extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:remove') ->setName('organization-folders:delete')
->setDescription('Remove a new organization folder') ->setDescription('Delete an organization folder')
->addArgument('id', InputArgument::REQUIRED, 'Id of the organization folder to remove'); ->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 { protected function configure(): void {
$this $this
->setName('organization-folders:update') ->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') ->addArgument('id', InputArgument::REQUIRED, 'Id of the organization folder to update')
->addOption('name', null, InputOption::VALUE_OPTIONAL, 'New name of the organization folder') ->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') ->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 { class GetOrganizationRole extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:get-organization-role') ->setName('organization-folders:organization-roles:get')
->setDescription('Get a specific organization role by id') ->setDescription('Get a specific organization role by id')
->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query') ->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query')
->addArgument('role-id', InputArgument::REQUIRED, ''); ->addArgument('role-id', InputArgument::REQUIRED, '');

View file

@ -11,7 +11,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class ListOrganizationProviders extends BaseCommand { class ListOrganizationProviders extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:list-organization-providers') ->setName('organization-folders:organization-providers:list')
->setDescription('List all registered organization providers'); ->setDescription('List all registered organization providers');
parent::configure(); parent::configure();
} }

View file

@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class ListOrganizationRoles extends BaseCommand { class ListOrganizationRoles extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:list-organization-roles') ->setName('organization-folders:organization-roles:list')
->setDescription('List all roles in a specific organization') ->setDescription('List all roles in a specific organization')
->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query') ->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query')
->addArgument('organization-id', InputArgument::REQUIRED, 'organization id to query roles of'); ->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 { class ListOrganizations extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:list-organizations') ->setName('organization-folders:organizations:list')
->setDescription('List all organizations provided by a specific organization provider') ->setDescription('List all organizations provided by a specific organization provider')
->addArgument('provider-id', InputArgument::REQUIRED, 'provider to query') ->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'); ->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 { class CreateResource extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:create-resource') ->setName('organization-folders:resources:create')
->setDescription('Create a new resource in organization folder') ->setDescription('Create a new resource in organization folder')
->addOption('organization-folder', null, InputOption::VALUE_REQUIRED, 'Id of organization folder to create resource in') ->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)') ->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; use OCA\OrganizationFolders\Command\BaseCommand;
class RemoveResource extends BaseCommand { class DeleteResource extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:remove-resource') ->setName('organization-folders:resources:delete')
->setDescription('Remove a resource') ->setDescription('Delete a resource')
->addArgument('id', InputArgument::REQUIRED, 'Id of the resource'); ->addArgument('id', InputArgument::REQUIRED, 'Id of the resource');
} }

View file

@ -12,7 +12,7 @@ use OCA\OrganizationFolders\Command\BaseCommand;
class ListResources extends BaseCommand { class ListResources extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:list-resources') ->setName('organization-folders:resources:list')
->addArgument('organization-folder-id', InputArgument::REQUIRED, 'Id of Organization Folder') ->addArgument('organization-folder-id', InputArgument::REQUIRED, 'Id of Organization Folder')
->addArgument('parent-resource-id', InputArgument::OPTIONAL, '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.'); ->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 { class UpdateResource extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:update-resource') ->setName('organization-folders:resources:update')
->setDescription('Update a resource') ->setDescription('Update a resource')
->addArgument('id', InputArgument::REQUIRED, 'Id of the resource to update') ->addArgument('id', InputArgument::REQUIRED, 'Id of the resource to update')
->addOption('name', null, InputOption::VALUE_OPTIONAL, 'New name of resource'); ->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 { class CreateResourceMember extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:create-resource-member') ->setName('organization-folders:resource-members:create')
->setDescription('Create a new member of resource') ->setDescription('Create a new member of resource')
->addOption('resource-id', null, InputOption::VALUE_REQUIRED, 'Id of resource to create member of') ->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)') ->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; use OCA\OrganizationFolders\Command\BaseCommand;
class RemoveResourceMember extends BaseCommand { class DeleteResourceMember extends BaseCommand {
protected function configure(): void { protected function configure(): void {
$this $this
->setName('organization-folders:remove-resource-member') ->setName('organization-folders:resource-members:delete')
->setDescription('Remove a member of a resource') ->setDescription('Delete a member of a resource')
->addArgument('id', InputArgument::REQUIRED, 'Id of the resource member'); ->addArgument('id', InputArgument::REQUIRED, 'Id of the resource member');
} }

View file

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