Continuing work on the CLI functionality. Able to strip the command line actions, and flags with their values #7
This commit is contained in:
+6
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user