Skip to content

Improve create command #137

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 10 commits into from
Feb 27, 2024
Merged

Conversation

FabioRosado
Copy link
Contributor

@FabioRosado FabioRosado commented Feb 27, 2024

This PR makes two improvements to the create command:

  • Allow you to simply call pyscript create and then get prompted by the cli for a name
    • Sets default name if the user ignores it
  • Allow you to do pyscript create my_file.py and it will create a my_file folder with a main and the contents of this file

I know that using pyscript create my_file.py is == to pyscript create ./my_file.py --wrap but I think if folks are going to be passing a file directly to the create command, it's likely that they want a proper pyscript folder with the contents of this file.

Fixes: #135

@FabioRosado FabioRosado merged commit c673813 into pyscript:main Feb 27, 2024
@FabioRosado FabioRosado deleted the fr/create-command branch February 27, 2024 14:02
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.

Create command is confusing
2 participants