public NuggifyCommand(FileSystem fileSystem, CurrentWorkingDirectory current, string name, string version) { _fileSystem = fileSystem; _current = current; _name = name; _version = version; }
private string GetConnectionString(string dbFileName) { var dirParts = CurrentWorkingDirectory.Split(Sep, StringSplitOptions.RemoveEmptyEntries); var connectionString = // not sure how else to configure this yet SqLitePrefix + string.Join(Sep, dirParts.Take(dirParts.Length - 3)) + Sep + dbFileName; return(connectionString); }
public FileInfo GetPath(string filename) { try { return(CurrentWorkingDirectory.GetFiles(filename + ".PDF", SearchOption.TopDirectoryOnly)[0]); } catch (IndexOutOfRangeException) { return(null); } }