import is from '@sindresorhus/is' ; import { SimpleGitOptions } from 'simple-git' ; import type { GitNoVerifyOption } from './types' ; let noVerify = [ 'push' , 'commit' ] ; export function setNoVerify ( value ) { if ( ! is . array ( value , is . string ) ) { throw new Error ( 'config error: gitNoVerify should be an array of strings' ) ; } noVerify = value ; } export function getNoVerify ( ) { return noVerify ; } export function simpleGitConfig ( ) { return { completion : { onClose : true , onExit : false , } , } ; }