(opts: TagDeleteWithDeps)
| 168 | } |
| 169 | |
| 170 | export async function tagDeleteWith(opts: TagDeleteWithDeps): Promise<void> { |
| 171 | const dir = opts.dir ?? "/"; |
| 172 | try { |
| 173 | await opts.git.deleteTag({ fs: opts.fs, dir, ref: opts.name }); |
| 174 | } catch (cause) { |
| 175 | if (isNotARepositoryCause(cause)) throw new NotARepositoryError(dir, { cause }); |
| 176 | throw new GitError("ETAGFAIL", `git tag -d failed: ${errorMessage(cause)}`, { cause }); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | export interface GitTagListOptions { |
| 181 | dir?: string; |
no test coverage detected