getGit method

GitCommands getGit(
  1. AlexConfig config, {
  2. bool isDemo = false,
})

Implementation

GitCommands getGit(AlexConfig config, {bool isDemo = false}) {
  final gitConfig = config.git;
  final Git gitClient;
  if (!isDemo) {
    gitClient = GitClient();
  } else {
    gitClient = DemoGit(verbose: isVerbose);
  }

  return GitCommands(gitClient, gitConfig);
}