execute method
Runs git process and returns result.
If run fails, it will print an error and exit the process.
Implementation
@override
String execute(List<String> args, String desc, {bool printIfError = true}) {
_print("git ${args.join(" ")}");
switch (args[0]) {
case "remote":
// return 'git@git.innim.ru:demo/demo-client.git';
return "https://github.com/demo/demo.git";
case "branch":
final a = args[1];
if (a == '-a') {
return '''
feature/612.subscriptions
feature/615.up-version-fb
feature/615.up-version-fb-clone
remotes/other/feature/612.subscriptions
remotes/origin/feature/612.subscriptions
remotes/origin/feature/614.redmi-update-fix
remotes/origin/feature/615.up-version-fb
''';
}
if (a == '--show-current') {
return 'feature/615.up-version-fb';
}
}
return "";
}