Continuing work on the CLI functionality. Able to strip the command line actions, and flags with their values #7

This commit is contained in:
amazing-username
2019-06-02 14:51:00 -04:00
parent 6641f9db44
commit 56bf7f1900
11 changed files with 377 additions and 4 deletions
+6 -1
View File
@@ -2,6 +2,7 @@
#include<string>
#include"Managers/ActionManager.h"
#include"Managers/CommitManager.h"
using std::cin;
using std::cout;
@@ -9,20 +10,24 @@ using std::endl;
using std::string;
using Managers::ActionManager;
using Managers::CommitManager;
string songPath{};
string newSongPath{};
int main(int argc, char** argv)
{
if (argc <= 1)
if (argc < 2)
{
cout<<"No actions provided"<<endl;
return 1;
}
ActionManager actMgr{argv};
auto chosenAction = actMgr.retrieveIcarusAction();
CommitManager commitMgr{chosenAction};
commitMgr.commitAction();
return 0;
}