78 lines
1.6 KiB
PHP
78 lines
1.6 KiB
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
/*
|
||
|
* This file is part of the "php-ipfs" package.
|
||
|
*
|
||
|
* (c) Robert Schönthal <robert.schoenthal@gmail.com>
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace IPFS\Api;
|
||
|
|
||
|
use IPFS\Annotation\Api as Endpoint;
|
||
|
use IPFS\Command\Command;
|
||
|
|
||
|
/**
|
||
|
* @author Robert Schönthal <robert.schoenthal@gmail.com>
|
||
|
* @autogenerated
|
||
|
* @codeCoverageIgnore
|
||
|
*/
|
||
|
final class Config implements Api
|
||
|
{
|
||
|
/**
|
||
|
* Open the config file for editing in $EDITOR.
|
||
|
*
|
||
|
* @Endpoint(name="config:edit")
|
||
|
*
|
||
|
* @return Command
|
||
|
*/
|
||
|
public function edit(): Command
|
||
|
{
|
||
|
return new Command(__METHOD__, get_defined_vars());
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Apply profile to config.
|
||
|
*
|
||
|
* @Endpoint(name="config:profile:apply")
|
||
|
*
|
||
|
* @param string $arg the profile to apply to the config
|
||
|
*
|
||
|
* @return Command
|
||
|
*/
|
||
|
public function profileApply(string $arg): Command
|
||
|
{
|
||
|
return new Command(__METHOD__, get_defined_vars());
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Replace the config with .
|
||
|
*
|
||
|
* @Endpoint(name="config:replace")
|
||
|
*
|
||
|
* @param string $file the file to use as the new config
|
||
|
*
|
||
|
* @return Command
|
||
|
*/
|
||
|
public function replace(string $file): Command
|
||
|
{
|
||
|
return new Command(__METHOD__, get_defined_vars());
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Output config file contents.
|
||
|
*
|
||
|
* @Endpoint(name="config:show")
|
||
|
*
|
||
|
* @return Command
|
||
|
*/
|
||
|
public function show(): Command
|
||
|
{
|
||
|
return new Command(__METHOD__, get_defined_vars());
|
||
|
}
|
||
|
}
|