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

Print task name by default when running task #3277

Closed
1 task done
guru-desh opened this issue Nov 12, 2024 · 1 comment · Fixed by #3278
Closed
1 task done

Print task name by default when running task #3277

guru-desh opened this issue Nov 12, 2024 · 1 comment · Fixed by #3278
Labels
⭐ enhancement Improvements for existing features

Comments

@guru-desh
Copy link
Contributor

Feature Description

It would awesome if pdm run <task>, by default, prints the name of the task it is running without having to use the -v flag.

Problem and Solution

When running a task, it's difficult to tell exactly what command a task is running in the command line without using -v or looking at the pyproject.toml file. This problem is exacerbated in composite tasks where multiple tasks are run and an error happens in one task in the composite step -- it becomes difficult to tell where the error occured.

Other task runners (like the one that was implemented by pixi[https://github.com/prefix-dev/pixi/blob/689cf9dd70371562d936af62e87b500e0d08e6aa/src/cli/run.rs#L117] and poethepoet[https://github.com/nat-n/poethepoet/blob/909891d7c7c2e49321e097bba6f8c62e1712efd1/poethepoet/task/base.py#L596]), by default, already print the task name before running the task.

Additional Context

No response

Are you willing to contribute to the development of this feature?

  • Yes, I am willing to contribute to the development of this feature.
@guru-desh guru-desh added the ⭐ enhancement Improvements for existing features label Nov 12, 2024
@frostming
Copy link
Collaborator

Contribution welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐ enhancement Improvements for existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants