src/api2/config/remotes.rs: improve api, implement update and read

This commit is contained in:
Dietmar Maurer
2020-01-14 14:20:16 +01:00
parent 16f04b9d79
commit 08195ac823
2 changed files with 89 additions and 1 deletions

View File

@ -56,6 +56,11 @@ fn remotes_commands() -> CommandLineInterface {
CliCommand::new(&api2::config::remotes::API_METHOD_CREATE_REMOTE)
.arg_param(&["name"])
)
.insert(
"update",
CliCommand::new(&api2::config::remotes::API_METHOD_UPDATE_REMOTE)
.arg_param(&["name"])
)
.insert(
"remove",
CliCommand::new(&api2::config::remotes::API_METHOD_DELETE_REMOTE)