Add support for running routines via command line
This commit is contained in:
@@ -68,6 +68,10 @@ class Repository extends Injectable {
|
||||
await this._git_cmd(`push${target ? ' '+target : ''}${ref ? ' '+ref : ''} --tags`)
|
||||
}
|
||||
|
||||
async pull({ rebase = false, target = '', ref = '' } = {}) {
|
||||
await this._git_cmd(`pull${target ? ' '+target : ''}${ref ? ' '+ref : ''}${rebase ? ' --rebase' : ''}`)
|
||||
}
|
||||
|
||||
async checkout(ref = 'master') {
|
||||
await this._git_cmd(`checkout "${ref}"`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user