public function set()
	{
		$options = $this->arguments->getOpts();

		if (empty($options))
		{
			if ($this->output->isInteractive())
			{
				$options = array();
				$option  = $this->output->getResponse('What do you want to configure [name|email|etc...] ?');

				if (is_string($option) && !empty($option))
				{
					$options[$option] = $this->output->getResponse("What do you want your {$option} to be?");
				}
				else if (empty($option))
				{
					$this->output->error("Please specify what option you want to set.");
				}
				else
				{
					$this->output->error("The {$option} option is not currently supported.");
				}
			}
			else
			{
				$this->output = $this->output->getHelpOutput();
				$this->help();
				$this->output->render();
				return;
			}
		}

		if (Config::save($options))
		{
			$this->output->addLine('Saved new configuration!', 'success');
		}
		else
		{
			$this->output->error('Failed to save configuration');
		}
	}
public function set()
	{
		$options = $this->arguments->getOpts();

		if (empty($options))
		{
			if ($this->output->isInteractive())
			{
				$options = array();
				$option  = $this->output->getResponse('What do you want to configure [name|email|etc...] ?');

				if (is_string($option) && !empty($option))
				{
					$options[$option] = $this->output->getResponse("What do you want your {$option} to be?");
				}
				else if (empty($option))
				{
					$this->output->error("Please specify what option you want to set.");
				}
				else
				{
					$this->output->error("The {$option} option is not currently supported.");
				}
			}
			else
			{
				$this->output = $this->output->getHelpOutput();
				$this->help();
				$this->output->render();
				return;
			}
		}

		if (Config::save($options))
		{
			$this->output->addLine('Saved new configuration!', 'success');
		}
		else
		{
			$this->output->error('Failed to save configuration');
		}
	}
public function set ( ) { $ options = $ this -> arguments -> getOpts ( ) ; if ( empty ( $ options ) ) { if ( $ this -> output -> isInteractive ( ) ) { $ options = array ( ) ; $ option = $ this -> output -> getResponse ( 'What do you want to configure [name|email|etc...] ?' ) ; if ( is_string ( $ option ) && ! empty ( $ option ) ) { $ options [ $ option ] = $ this -> output -> getResponse ( "What do you want your {$option} to be?" ) ; } else if ( empty ( $ option ) ) { $ this -> output -> error ( "Please specify what option you want to set." ) ; } else { $ this -> output -> error ( "The {$option} option is not currently supported." ) ; } } else { $ this -> output = $ this -> output -> getHelpOutput ( ) ; $ this -> help ( ) ; $ this -> output -> render ( ) ; return ; } } if ( Config :: save ( $ options ) ) { $ this -> output -> addLine ( 'Saved new configuration!' , 'success' ) ; } else { $ this -> output -> error ( 'Failed to save configuration' ) ; } }
Sets a configuration option

Sets/updates config vars, creating .muse config file as needed

@museDescription  Sets the defined key/value pair and saves it into the user's configuration

@return  void
Sets a configuration option