Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commit command #327

Merged
merged 10 commits into from
Apr 27, 2021
Prev Previous commit
Next Next commit
add force to commitTarget
mattseddon committed Apr 27, 2021
commit 1fe5a620045b2e6bf6a30513ae0b8d09292119e8
5 changes: 3 additions & 2 deletions extension/src/cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ensureDir } from 'fs-extra'
import { basename, dirname } from 'path'
import { buildCommand, Commands } from './commands'
import { buildCommand, Commands, CommitFlag } from './commands'
import { execProcess } from './execution'

const runTargetCommand = async (
@@ -32,7 +32,8 @@ export const commitTarget = (options: {
fsPath: string
cliPath: string | undefined
pythonBinPath: string | undefined
}): Promise<string> => runTargetCommand(options, Commands.COMMIT)
}): Promise<string> =>
runTargetCommand(options, buildCommand(Commands.COMMIT, CommitFlag.FORCE))

export const checkoutTarget = (options: {
fsPath: string