execute method

  1. @override
String execute(
  1. List<String> args,
  2. String desc, {
  3. bool printIfError = true,
})

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}) {
  if (verbose) print.verbose('git ${args.join(' ')}');
  switch (args[0]) {
    case "remote":
      return "https://github.com/demo/demo.git";
  }

  return "";
}