From be88609c825e18201f240415fe74a31c1a789484 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 19 May 2021 18:00:16 -0400 Subject: Added git command; refactoring --- src/cmd_manipulate.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cmd_manipulate.cc') diff --git a/src/cmd_manipulate.cc b/src/cmd_manipulate.cc index 9fc019e..2dff5e1 100644 --- a/src/cmd_manipulate.cc +++ b/src/cmd_manipulate.cc @@ -246,4 +246,10 @@ namespace cmd { utils::saveJson(*c, p); return text.str(); } + + std::string git(std::vector args) { + std::string root = getTruePath("").string(); + std::system(("cd " + root + " && " + utils::join(args, " ")).c_str()); + return ""; + } } -- cgit v1.2.3