-
Notifications
You must be signed in to change notification settings - Fork 830
help text #9690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help text #9690
Conversation
|
What about |
|
@brettfo , not implemented yet. |
| let baseArgs = [| | ||
| typeof<FSharpScript>.Assembly.Location; | ||
| "--noninteractive"; | ||
| "--targetprofile:" + computedProfile | ||
| if quiet then "--quiet" | ||
| match langVersion with | ||
| | LangVersion.V47 -> "--langversion:4.7" | ||
| | LangVersion.V50 -> "--langversion:5.0" | ||
| | LangVersion.Preview -> "--langversion:preview" | ||
| |] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| let baseArgs = [| | |
| typeof<FSharpScript>.Assembly.Location; | |
| "--noninteractive"; | |
| "--targetprofile:" + computedProfile | |
| if quiet then "--quiet" | |
| match langVersion with | |
| | LangVersion.V47 -> "--langversion:4.7" | |
| | LangVersion.V50 -> "--langversion:5.0" | |
| | LangVersion.Preview -> "--langversion:preview" | |
| |] | |
| let baseArgs = | |
| [| | |
| typeof<FSharpScript>.Assembly.Location; | |
| "--noninteractive"; | |
| "--targetprofile:" + computedProfile | |
| if quiet then "--quiet" | |
| match langVersion with | |
| | LangVersion.V47 -> "--langversion:4.7" | |
| | LangVersion.V50 -> "--langversion:5.0" | |
| | LangVersion.Preview -> "--langversion:preview" | |
| |] |
| member _.HelpMessages = [| | ||
| sprintf """ #r "nuget:FSharp.Data, 3.1.2";; // %s 'FSharp.Data' %s '3.1.2'""" (SR.loadNugetPackage()) (SR.version()) | ||
| sprintf """ #r "nuget:FSharp.Data";; // %s 'FSharp.Data' %s""" (SR.loadNugetPackage()) (SR.highestVersion()) | ||
| |] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| member _.HelpMessages = [| | |
| sprintf """ #r "nuget:FSharp.Data, 3.1.2";; // %s 'FSharp.Data' %s '3.1.2'""" (SR.loadNugetPackage()) (SR.version()) | |
| sprintf """ #r "nuget:FSharp.Data";; // %s 'FSharp.Data' %s""" (SR.loadNugetPackage()) (SR.highestVersion()) | |
| |] | |
| member _.HelpMessages = | |
| [| | |
| sprintf """ #r "nuget:FSharp.Data, 3.1.2";; // %s 'FSharp.Data' %s '3.1.2'""" (SR.loadNugetPackage()) (SR.version()) | |
| sprintf """ #r "nuget:FSharp.Data";; // %s 'FSharp.Data' %s""" (SR.loadNugetPackage()) (SR.highestVersion()) | |
| |] | |
| member _.GetRegisteredDependencyManagerHelpText (compilerTools, outputDir, errorReport) = [| | ||
| let managers = RegisteredDependencyManagers compilerTools (Option.ofString outputDir) errorReport | ||
| for kvp in managers do | ||
| let dm = kvp.Value | ||
| yield! dm.HelpMessages | ||
| |] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| member _.GetRegisteredDependencyManagerHelpText (compilerTools, outputDir, errorReport) = [| | |
| let managers = RegisteredDependencyManagers compilerTools (Option.ofString outputDir) errorReport | |
| for kvp in managers do | |
| let dm = kvp.Value | |
| yield! dm.HelpMessages | |
| |] | |
| member _.GetRegisteredDependencyManagerHelpText (compilerTools, outputDir, errorReport) = | |
| [| | |
| let managers = RegisteredDependencyManagers compilerTools (Option.ofString outputDir) errorReport | |
| for kvp in managers do | |
| let dm = kvp.Value | |
| yield! dm.HelpMessages | |
| |] |
* help text * Fix tests * Moar tests * Fix x platform testing
Update #help fsi command to display help text for package managers.
Update fsscript, to allow language configuration and quiet mode to improve testing. Add tests.