private function generate()
    {
        $action = $this->arg->getParameter('action');

        if (!in_array($action, ['key', 'resource', 'session'])) {
            $this->throwFailsAction('This action is not exists', 'help generate');
        }

        $this->command->call(
            'generate',
            $action,
            $this->arg->getParameter('target')
        );
    }