git_assistant 0.1.0-dev
git_assistant: ^0.1.0-dev copied to clipboard
Assists you to use git and .git in easy and simple way with robust API
Features #
Implemented
-
Command generator and executor
- Generates command sequence
var git = Git(); print(git.log.prettyOpt(PF.oneline)); // 'git log --pretty=oneline' print(git.log); // 'git log'- Executes command sequence
var git = Git(); // Executes 'git log --pretty=tformat:commit hash = %H' and returns stdout git.log.prettyOpt('commit hash = ${PP.commitHash.string}').exec(); git.log.exec(); // Executes 'git log' -
Git commands support
-
Log - command
- Pretty - option
// you can use pretty option with two formatting choices: // 1. Basic formatter in PF enum such email, oneline and etc. // 2. Custom formatter which use tformat and placeholders in PP. var git = Git(); git.log.prettyOpt(PF.oneline).exec(); // 'git log --pretty=oneline' // 'git log --pretty=tformat:commit %H' print(git.log.prettyOpt('commit ${PP.commitHash.string}'));
-
You can see feature implementation todo in repository projects
License #
Distributed under the BSD-3-Clause License. See LICENSE for more information.