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 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)')
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
@ -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.');
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue