C# Class Ipfs.Commands.IpfsConfig

Inheritance: Ipfs.Json.IpfsCommand
Afficher le fichier Open project: TrekDev/net-ipfs-api

Méthodes publiques

Méthode 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

Méthode Description
IpfsConfig ( Uri commandUri, HttpClient httpClient, IJsonSerializer jsonSerializer ) : Ipfs.Json

Method Details

Edit() public méthode

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
Résultat Task

Replace() public méthode

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
Résultat Task

Show() public méthode

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
Résultat Task