Cleanup formatting
Wew, that's a lot of stuff. But I thought it makes sense after the
sysrepo migration.
Change-Id: If363d2ce1b11106113a9f0c37a3bcd59a940bd0b
diff --git a/src/cli.cpp b/src/cli.cpp
index f89c8d6..4f4328a 100644
--- a/src/cli.cpp
+++ b/src/cli.cpp
@@ -60,8 +60,8 @@
-v enable verbose mode
-p <port> port number [default: 830]
)";
-#include "netconf_access.hpp"
#include "cli-netconf.hpp"
+#include "netconf_access.hpp"
#define PROGRAM_NAME "netconf-access"
#else
#error "Unknown CLI backend"
@@ -86,7 +86,7 @@
} else if (ds.asString() == "running") {
datastoreType = Datastore::Running;
} else {
- std::cerr << PROGRAM_NAME << ": unknown datastore: " << ds.asString() << "\n";
+ std::cerr << PROGRAM_NAME << ": unknown datastore: " << ds.asString() << "\n";
return 1;
}
}
@@ -129,7 +129,6 @@
std::cerr << ex.what() << "\n";
return 1;
}
-
}
}
if (const auto& dataFiles = args["-i"]) {
@@ -175,10 +174,10 @@
Replxx lineEditor;
- lineEditor.bind_key(Replxx::KEY::meta(Replxx::KEY::BACKSPACE), [&lineEditor] (const auto& code) {
+ lineEditor.bind_key(Replxx::KEY::meta(Replxx::KEY::BACKSPACE), [&lineEditor](const auto& code) {
return lineEditor.invoke(Replxx::ACTION::KILL_TO_BEGINING_OF_WORD, code);
});
- lineEditor.bind_key(Replxx::KEY::control('W'), [&lineEditor] (const auto& code) {
+ lineEditor.bind_key(Replxx::KEY::control('W'), [&lineEditor](const auto& code) {
return lineEditor.invoke(Replxx::ACTION::KILL_TO_WHITESPACE_ON_LEFT, code);
});