private function doSetAction(Repository $repository, $item)
    {
        if (!$this->hasArgument('value')) {
            $this->output->error('A value must be provided when using the "set" action.');
        }

        $value = $this->argument('value');
        $repository->save($item, $this->unserialize($value));
    }