Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rdavisau committed Jun 22, 2015
1 parent 77e5037 commit a6b13e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions JsonDataContextDriver/Inputs/JsonFileInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public override string ToString()
switch (InputType)
{
case JsonInputType.File:
return InputPath;
return String.Format("{1}: {0}", InputPath, Path.GetFileNameWithoutExtension(InputPath));
case JsonInputType.Directory:
return Path.Combine(InputPath, Mask ?? "*.*") + (Recursive ? " + subfolders" : "");
return String.Format("Search Folder: {0}", Path.Combine(InputPath, Mask ?? "*.*") + (Recursive ? " + subfolders" : ""));
default:
return "ERR";
}
Expand Down
4 changes: 3 additions & 1 deletion JsonDataContextDriver/Inputs/JsonUrlInput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ private static string ToLiteral(string input)

public override string ToString()
{
var uri = new Uri(Url);

return GenerateAsMethod
? String.Format("{0}: {1} with parameters ({2})", this.Name, new Uri(this.Url).AbsolutePath,
? String.Format("{0}: {1} with parameters ({2})", this.Name, uri.Host+uri.AbsolutePath,
String.Join(", ", GetUrlQueryStringParameters().Select(p => p.Item1)))
: String.Format("{0}: {1}", this.Name, this.Url);
}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ This driver allows you to select a set of JSON inputs from which a LINQPad data

####Screenshots

![](http://ryandavis.io/content/images/2015/06/cxn_dialog.png)
![](http://ryandavis.io/content/images/2015/06/json_context-1.png)
![](http://ryandavis.io/content/images/2015/06/json_connection_dialog_updated.png)
![](http://ryandavis.io/content/images/2015/06/json_query-1.png)

####Planned Features:

Expand Down

0 comments on commit a6b13e0

Please sign in to comment.