Potsky\LaravelLocalizationHelpers\Command\LocalizationClear::fire PHP Method

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed
    public function fire()
    {
        $days = (int) $this->option('days');
        if ($days < 0) {
            $this->writeError("days option cannot be negative");
            return self::ERROR;
        }
        $success = $this->manager->deleteBackupFiles($this->lang_folder_path, $days, $this->option('dry-run'));
        return $success === true ? self::SUCCESS : self::ERROR;
    }