-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from sys27/feature/cli
#710 - Add ability to execute expression from files.
- Loading branch information
Showing
11 changed files
with
94 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xFunc.DotnetTool/Options/BaseOptions.cs → xFunc.Cli/Options/BaseOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xFunc.DotnetTool/Options/DebugInfoOptions.cs → xFunc.Cli/Options/DebugInfoOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....DotnetTool/Options/InteractiveOptions.cs → xFunc.Cli/Options/InteractiveOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
xFunc.DotnetTool/Options/ParseOptions.cs → xFunc.Cli/Options/ParseOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Dmytro Kyshchenko. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace xFunc.Cli.Options; | ||
|
||
[Verb("run", HelpText = "Run all expressions from a file.")] | ||
public class RunFileOptions : DebugInfoOptions | ||
{ | ||
[Value(0, Required = true, MetaName = "File", HelpText = "Path to a file.")] | ||
public string File { get; set; } | ||
|
||
[Usage(ApplicationAlias = "xfunc")] | ||
public static IEnumerable<Example> Examples | ||
=> new List<Example> | ||
{ | ||
new Example("Run all expressions from a file", new RunFileOptions { File = "./file.xf" }) | ||
}; | ||
} |
2 changes: 1 addition & 1 deletion
2
xFunc.DotnetTool/Options/SolveOptions.cs → xFunc.Cli/Options/SolveOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters