Descriptions
This commit is contained in:
@ -5,7 +5,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'comunas'
|
||||
name: 'comunas',
|
||||
description: 'Obtiene las comunas de una región'
|
||||
)]
|
||||
class Comunas extends Command
|
||||
{
|
||||
|
@ -1,28 +1,25 @@
|
||||
<?php
|
||||
namespace Incoviba\Command;
|
||||
|
||||
use Psr\Http\Client\ClientInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'run:full'
|
||||
name: 'run:full',
|
||||
description: 'Ejecuta todos los comandos de la aplicación'
|
||||
)]
|
||||
class Full extends Command
|
||||
{
|
||||
public function __construct(ClientInterface $client, LoggerInterface $logger, protected array $commandsList, string $name = null)
|
||||
{
|
||||
parent::__construct($client, $logger, $name);
|
||||
}
|
||||
|
||||
public function execute(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
|
||||
{
|
||||
$commands = [
|
||||
'comunas',
|
||||
'money:ipc',
|
||||
'money:uf',
|
||||
'money:uf:update',
|
||||
'proyectos:activos',
|
||||
'ventas:cierres:vigentes',
|
||||
'ventas:cuotas:hoy',
|
||||
'ventas:cuotas:pendientes',
|
||||
'ventas:cuotas:vencer'
|
||||
];
|
||||
foreach ($commands as $command) {
|
||||
foreach ($this->commandsList as $command) {
|
||||
$cmd = new Console\Input\ArrayInput([
|
||||
'command' => $command
|
||||
]);
|
||||
|
@ -7,7 +7,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'money:ipc'
|
||||
name: 'money:ipc',
|
||||
description: 'Fetch IPC data from the API'
|
||||
)]
|
||||
class IPC extends Command
|
||||
{
|
||||
|
@ -6,7 +6,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'money:uf'
|
||||
name: 'money:uf',
|
||||
description: 'Get the UF value for today'
|
||||
)]
|
||||
class UF extends Command
|
||||
{
|
||||
|
@ -6,7 +6,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'money:uf:update'
|
||||
name: 'money:uf:update',
|
||||
description: 'Update UF value'
|
||||
)]
|
||||
class Update extends Command
|
||||
{
|
||||
|
@ -5,7 +5,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'proyectos:activos'
|
||||
name: 'proyectos:activos',
|
||||
description: 'Obtiene los proyectos activos'
|
||||
)]
|
||||
class Activos extends Command
|
||||
{
|
||||
|
@ -5,7 +5,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'ventas:cierres:vigentes'
|
||||
name: 'ventas:cierres:vigentes',
|
||||
description: 'Obtiene los cierres de ventas vigentes'
|
||||
)]
|
||||
class Vigentes extends Command
|
||||
{
|
||||
|
@ -5,7 +5,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'ventas:cuotas:hoy'
|
||||
name: 'ventas:cuotas:hoy',
|
||||
description: 'Obtiene las cuotas de ventas que vencen hoy'
|
||||
)]
|
||||
class Hoy extends Command
|
||||
{
|
||||
|
@ -5,7 +5,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'ventas:cuotas:pendientes'
|
||||
name: 'ventas:cuotas:pendientes',
|
||||
description: 'Obtiene las cuotas pendientes de pago'
|
||||
)]
|
||||
class Pendientes extends Command
|
||||
{
|
||||
|
@ -5,7 +5,8 @@ use Symfony\Component\Console;
|
||||
use Incoviba\Common\Alias\Command;
|
||||
|
||||
#[Console\Attribute\AsCommand(
|
||||
name: 'ventas:cuotas:vencer'
|
||||
name: 'ventas:cuotas:vencer',
|
||||
description: 'Obtiene las cuotas por vencer'
|
||||
)]
|
||||
class PorVencer extends Command
|
||||
{
|
||||
|
Reference in New Issue
Block a user