From 7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 May 2021 15:10:54 -0400 Subject: Added bash completion, amongst others --- src/entry.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index 1badd40..e354c82 100644 --- a/src/entry.h +++ b/src/entry.h @@ -28,6 +28,7 @@ namespace entry { virtual nlohmann::json toJson(void) const { return nlohmann::json({ + {"entry", entry}, {"name", name}, {"type", type}, {"text", text} @@ -35,9 +36,10 @@ namespace entry { } protected: - Entry(const nlohmann::json& data) : name(data["name"]), type(data["type"]), text(data["text"]) {}; + Entry(const nlohmann::json& data) : entry(data["entry"]), name(data["name"]), type(data["type"]), text(data["text"]) {}; private: + const std::string entry; const std::string name; const std::string type; const std::string text; -- cgit v1.2.3