| @@ 61-70 (lines=10) @@ | ||
| 58 | } |
|
| 59 | ||
| 60 | ||
| 61 | protected function configure() { |
|
| 62 | parent::configure(); |
|
| 63 | $this->setName('circles:groups') |
|
| 64 | ->setDescription('manage the linked groups') |
|
| 65 | ->addOption('list', 'l', InputOption::VALUE_NONE, 'list all linked group') |
|
| 66 | ->addOption('link', 'a', InputOption::VALUE_NONE, 'link a group to a circle') |
|
| 67 | ->addOption('unlink', 'd', InputOption::VALUE_NONE, 'unlink a group from a circle') |
|
| 68 | ->addArgument('circle_id', InputArgument::OPTIONAL, 'id of the circle') |
|
| 69 | ->addArgument('group', InputArgument::OPTIONAL, 'name of the group'); |
|
| 70 | } |
|
| 71 | ||
| 72 | ||
| 73 | protected function execute(InputInterface $input, OutputInterface $output) { |
|
| @@ 98-110 (lines=13) @@ | ||
| 95 | /** |
|
| 96 | * |
|
| 97 | */ |
|
| 98 | protected function configure() { |
|
| 99 | parent::configure(); |
|
| 100 | $this->setName('circles:manage:config') |
|
| 101 | ->setDescription('edit config/type of a Circle') |
|
| 102 | ->addArgument('circle_id', InputArgument::REQUIRED, 'ID of the circle') |
|
| 103 | ->addArgument( |
|
| 104 | 'config', InputArgument::IS_ARRAY, |
|
| 105 | 'list of value to change in the configuration of the Circle' |
|
| 106 | ) |
|
| 107 | ->addOption('initiator', '', InputOption::VALUE_REQUIRED, 'set an initiator to the request', '') |
|
| 108 | ->addOption('initiator-type', '', InputOption::VALUE_REQUIRED, 'set initiator type', '0') |
|
| 109 | ->addOption('status-code', '', InputOption::VALUE_NONE, 'display status code on exception'); |
|
| 110 | } |
|
| 111 | ||
| 112 | ||
| 113 | /** |
|