listTags
List tags
| param | type [= default] | description |
|---|---|---|
| fs | FsClient | a file system client |
| dir | string | The working tree directory path |
| gitdir | string = join(dir,'.git') | The git directory path |
| return | Promise<Array<string>> | Resolves successfully with an array of tag names |
Example Code:
let tags = await git.listTags({ fs, dir: '/tutorial' })
console.log(tags)
Tip: If you need a clean slate, expand and run this snippet to clean up the file system.
window.fs = new LightningFS('fs', { wipe: true })
window.pfs = window.fs.promises
console.log('done')