configure() public static méthode

public static configure ( Command $command )
$command Symfony\Component\Console\Command\Command
Exemple #1
0
    public function configure()
    {
        $this->setName('report');
        $this->setDescription('Generate a report from storage or an XML file');
        $this->setHelp(<<<'EOT'
Generate report from the latest stored suite:

    $ %command.full_name% --uuid=latest --report=aggregate

Generate report from a UUID (as determined from the <info>log</info> command:

    $ %command.full_name% --uuid=133a2605fac74edabf046edeb9c5f7c4dc1a3aac --report=aggregate

Generate from a query:

    $ %command.full_name% --query='benchmark: "MyBench"' --report=aggregate

Generate from an XML file:

    $ %command.full_name% --file=dump.xml

To dump an XML file, use the <info>run</info> command with the
<comment>dump-file</comment> option.

You can specify the options multiple times to compare multiple suites.
EOT
);
        ReportHandler::configure($this);
        TimeUnitHandler::configure($this);
        SuiteCollectionHandler::configure($this);
        DumpHandler::configure($this);
    }
Exemple #2
0
    public function configure()
    {
        $this->setName('delete');
        $this->setDescription('Delete suites from storage');
        $this->setHelp(<<<'EOT'
Delete one or many suites from storage:

    $ %command.full_name% --uuid=38aa53bf1edb2cf21391407487d98f37a2e0e2ba

Or with a query

    $ %command.full_name% --query='subject: "benchMd5"'
EOT
);
        SuiteCollectionHandler::configure($this);
    }