public bool TryInputOrPath( IEnumerable <string> messages, Action <string> input, Action <string> path, TabCompletion complete) { void FileCallback(FileInfo f) { path(f.FullName); } void DirCallback(DirectoryInfo d) { path(d.FullName); } return(this.TryInputOrPathCore(messages, input, FileCallback, DirCallback, complete.ReadLine)); }
public bool TryInputOrPath( IEnumerable <string> messages, Action <string> input, Action <FileInfo> file, Action <DirectoryInfo> dir, TabCompletion complete) { return(this.TryInputOrPathCore(messages, input, file, dir, complete.ReadLine)); }
public bool TryInput(IEnumerable <string> messages, out string value, TabCompletion complete) { return(this.TryInputCore(messages, out value, complete.ReadLine)); }