C# Class Ipfs.Commands.IpfsConfig

Inheritance: Ipfs.Json.IpfsCommand
Mostrar archivo Open project: TrekDev/net-ipfs-api

Public Methods

Method Description
Edit ( ) : Task

Opens the config file for editing in $EDITOR To use 'ipfs config edit', you must have the $EDITOR environment variable set to your preferred text editor.

Replace ( string file ) : Task

Replaces the config with Make sure to back up the config file first if neccessary, this operation can't be undone.

Show ( ) : Task

Outputs the content of the config file WARNING: Your private key is stored in the config file, and it will be included in the output of this command.

Private Methods

Method Description
IpfsConfig ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : Ipfs.Json

Method Details

Edit() public method

Opens the config file for editing in $EDITOR To use 'ipfs config edit', you must have the $EDITOR environment variable set to your preferred text editor.
public Edit ( ) : Task
return Task

Replace() public method

Replaces the config with Make sure to back up the config file first if neccessary, this operation can't be undone.
public Replace ( string file ) : Task
file string The file to use as the new config
return Task

Show() public method

Outputs the content of the config file WARNING: Your private key is stored in the config file, and it will be included in the output of this command.
public Show ( ) : Task
return Task