Skip to content
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

[idea]simplify console_scripts #1431

Open
HaveF opened this issue Aug 11, 2024 · 0 comments
Open

[idea]simplify console_scripts #1431

HaveF opened this issue Aug 11, 2024 · 0 comments

Comments

@HaveF
Copy link

HaveF commented Aug 11, 2024

Thank you for the repository.

Lately, I've been working extensively with console_scripts. Currently, we're using fastcore's call_parse to wrap functions and then manually adding entries to the settings.ini file, like so:

console_scripts = nbdev_export=nbdev.cli:nbdev_export

I believe this process could be simplified. Imagine if we could enhance call_parse to automatically generate the console_scripts entry based on a decorator, such as:

@call_parse(script_name="nbdev-fastcore-amazing")
def nbdev_export(…):
...

This would automatically update console_scripts like:

console_scripts = nbdev-fastcore-amazing=nbdev.cli:nbdev_export

This approach could save a lot of manual typing and streamline the process.

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

No branches or pull requests

1 participant