Skip to main content

Interface: FileCommitApi<TCommitContext>

@pvm/types.FileCommitApi

Type parameters

Name
TCommitContext

Hierarchy

Implemented by

Methods

addFiles

â–¸ addFiles(commitContext, filePaths): void

Parameters

NameType
commitContextTCommitContext
filePathsstring[]

Returns

void

Defined in

packages/pvm-types/lib/vcs.ts:54


appendFile

â–¸ appendFile(commitContext, filePath, content): void

Parameters

NameType
commitContextTCommitContext
filePathstring
contentstring

Returns

void

Defined in

packages/pvm-types/lib/vcs.ts:55


beginCommit

â–¸ beginCommit(): TCommitContext

Returns

TCommitContext

Defined in

packages/pvm-types/lib/vcs.ts:56


commit

â–¸ commit(commitContext, message, opts?): Promise<CommitResult>

Parameters

NameType
commitContextTCommitContext
messagestring
opts?CommitOptions

Returns

Promise<CommitResult>

Defined in

packages/pvm-types/lib/vcs.ts:60


deleteFile

â–¸ deleteFile(commitContext, file_path): void

Parameters

NameType
commitContextTCommitContext
file_pathstring

Returns

void

Defined in

packages/pvm-types/lib/vcs.ts:59


rollbackCommit

â–¸ rollbackCommit(commitContext): Promise<void>

Parameters

NameType
commitContextTCommitContext

Returns

Promise<void>

Defined in

packages/pvm-types/lib/vcs.ts:57


updateFile

â–¸ updateFile(commitContext, file_path, content): void

Parameters

NameType
commitContextTCommitContext
file_pathstring
contentstring

Returns

void

Defined in

packages/pvm-types/lib/vcs.ts:58