public function perform()
    {
        /** @var CommandDeclaration $declaration */
        $declaration = $this->createDeclaration(compact('alias'));

        $declaration->setAlias($this->argument('alias') ?? $this->argument('name'));
        $declaration->setDescription((string)$this->option('description'));

        $this->writeDeclaration($declaration);
    }
public function perform()
    {
        /** @var CommandDeclaration $declaration */
        $declaration = $this->createDeclaration(compact('alias'));

        $declaration->setAlias($this->argument('alias') ?? $this->argument('name'));
        $declaration->setDescription((string)$this->option('description'));

        $this->writeDeclaration($declaration);
    }
public function perform ( ) { /** @var CommandDeclaration $declaration */ $ declaration = $ this -> createDeclaration ( compact ( 'alias' ) ) ; $ declaration -> setAlias ( $ this -> argument ( 'alias' ) ?? $ this -> argument ( 'name' ) ) ; $ declaration -> setDescription ( ( string ) $ this -> option ( 'description' ) ) ; $ this -> writeDeclaration ( $ declaration ) ; }
Create command declaration.
Create command declaration .