-
Notifications
You must be signed in to change notification settings - Fork 175
Feature/218 #219
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
Feature/218 #219
Conversation
src/Dotnet.Script.Core/Scaffolder.cs
Outdated
@@ -35,7 +36,13 @@ public void InitializerFolder() | |||
WriteFile(pathToOmniSharpJson, omniSharpFileTemplate); | |||
} | |||
|
|||
CreateNewScriptFile("helloworld.csx"); | |||
if (Directory.GetFiles(currentDirectory, "*.csx", SearchOption.AllDirectories).Any() |
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.
is the depth-scan by design? I think we don't need to scan all subfolders, just the current one?
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.
Agreed. Top level should be enough 👍
src/Dotnet.Script/Program.cs
Outdated
@@ -88,10 +88,11 @@ private static int Wain(string[] args) | |||
app.Command("init", c => | |||
{ | |||
c.Description = "Creates a sample script along with the launch.json file needed to launch and debug the script."; | |||
var fileName = c.Argument("filename", "The name of the sample script file to be created during initialization."); |
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.
we can add info that it's optional
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.
Yup 👍
@filipw Are we good here ? 😃 |
sorry I forgot :) |
This PR adds support for passing a custom filename during initialization.
This create a initialized folder with a script file named
custom.csx
This will now create a file named
main.csx
instead of the oldHelloWorld.csx
file.