3var xtend = require('xtend')
4var check = require('./check')
5var find = require('./find')
6var constants = require('./constants')
8module.exports = validateLinks
10cliCompleter.pluginId = constants.sourceId
12function validateLinks(options, fileSet) {
13 var settings = options || {}
15 // Attach a `completer`.
17 fileSet.use(cliCompleter)
22 // Find references and landmarks.
23 function transformer(tree, file, next) {
24 find.run(xtend(settings, {tree: tree, file: file, fileSet: fileSet}), done)
32 checkAll([file], next)
38// Completer for the CLI (multiple files, supports parsing more files).
39function cliCompleter(set, next) {
40 checkAll(set.valueOf(), next)
43function checkAll(files, next) {
44 // Check all references and landmarks.
45 check.run({files: files}, function (err) {
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list