Add support for running routines via command line

This commit is contained in:
garrettmills
2020-08-13 20:28:23 -05:00
parent afb35ebad8
commit f5b84b530c
33 changed files with 396 additions and 5 deletions

View File

@@ -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}"`)
}