Skip to content

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

Merged
merged 4 commits into from
Jan 10, 2018
Merged

Feature/218 #219

merged 4 commits into from
Jan 10, 2018

Conversation

seesharper
Copy link
Collaborator

This PR adds support for passing a custom filename during initialization.

dotnet script init custom.csx

This create a initialized folder with a script file named custom.csx

dotnet script init

This will now create a file named main.csx instead of the old HelloWorld.csx file.

@seesharper seesharper requested a review from filipw January 9, 2018 08:28
@@ -35,7 +36,13 @@ public void InitializerFolder()
WriteFile(pathToOmniSharpJson, omniSharpFileTemplate);
}

CreateNewScriptFile("helloworld.csx");
if (Directory.GetFiles(currentDirectory, "*.csx", SearchOption.AllDirectories).Any()
Copy link
Member

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?

Copy link
Collaborator Author

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 👍

@@ -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.");
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup 👍

@seesharper
Copy link
Collaborator Author

@filipw Are we good here ? 😃

@filipw
Copy link
Member

filipw commented Jan 10, 2018

sorry I forgot :)

@filipw filipw merged commit 7bda2cc into master Jan 10, 2018
@filipw filipw deleted the feature/218 branch January 10, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy