discontinuedPackage git_assistant has been discontinued.

PushGitChain class

Git push command class

Provides push command functionalities

var git = Git();
// 'git push origin master'
print(git.push.to(remote: 'origin', refspec: 'master'));
git.push.allOpt().exec(); // Runs 'git push --all'
Inheritance

Constructors

PushGitChain(String chainName, BaseGitChain prevChain)

Properties

argList → List<String>
Generates command sequence and returns it as List<String> to use in exec, toString and other functionalities in subclasses.
no setterinherited
chainName → String
The current chain name, which is used in generating command in argList.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
prevChain → BaseGitChain?
Refers to the previous chain of the current chain that use in argList to generate command sequence.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

allOpt() → PushGitChain
Generates --all option
dryRunOpt() → PushGitChain
Generates --dry-run option
exec() → dynamic
Executes the generated command in the argList and returns the result.
inherited
forceOpt() → PushGitChain
Generates --force option
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quietOpt() → PushGitChain
Generates --quiet option
setUpstreamOpt({String? remote, String? refspec}) → PushGitChain
Generates --set-upstream option.
to({required String remote, required String refspec}) → PushGitChain
Adds 'remote refspec' end of the main chain both them are required.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited