Skip to content

feat(common): add blork assertions for git methods #40

@antongolub

Description

@antongolub
export const gitConfigAdd = <T extends IGitConfigAdd>({
  cwd,
  key,
  value,
  sync,
}: T): TGitResult<T> => {
  check(cwd, 'cwd: absolute')         // ← Here
  check(name, 'name: string+')        // ← 

  return gitExec({
    cwd,
    sync,
    args: ['config', '--add', key, value],
  }) as TGitResult<T>
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions