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

[Feature Request] Private tasks #284

Closed
JulienBreux opened this issue Jan 21, 2020 · 4 comments
Closed

[Feature Request] Private tasks #284

JulienBreux opened this issue Jan 21, 2020 · 4 comments

Comments

@JulienBreux
Copy link

It's possible to have private task ?

Definition of private task:

  • Only callable inside a Taskfile
  • Never listed outside with task -l

Thanks 🙏

@JulienBreux JulienBreux changed the title [Feature Request] [Feature Request] Private tasks Jan 21, 2020
@andreynering andreynering added type: question Further information is requested. type: feature A new feature or functionality. labels Jan 26, 2020
@andreynering
Copy link
Member

Hi @JulienBreux,

Tasks without a desc: are kinda private, since they won't be listed on task -l.

It'd be trivial to allow private: true in a task, but the benefit is relatively small. I'm open for opinions.

@BnGx
Copy link

BnGx commented Nov 4, 2023

The idea of ​​a private task seems interesting to me because it could be reserved for advanced users or automatic actions like Git hooks or CI/CD environment.

For example, if there are a series of tasks such as formatting or linting of the code or integration test and deploy, it would be appropriate to hide them from the task list but still recall them from the CLI.

The list of tasks could become very long for complex projects, confusing the developer who normally focuses on productivity during the development phase using canonical tasks such as test, run, docs.

Although currently the workaround can be implemented by omitting the desc option, in my opinion it would be more appropriate to use a private or hidden option.

For the call from the CLI it might be appropriate to include a flag like --include-private, -p to allow its execution although I don't think this is essential as it would complicate the call syntax a bit.

@pd93
Copy link
Member

pd93 commented Nov 4, 2023

@BnGx See internal tasks.

@BnGx
Copy link

BnGx commented Nov 4, 2023

I know the internal tasks, however these are not callable from the CLI and have a different purpose than what I described.

@pd93 pd93 removed type: question Further information is requested. type: feature A new feature or functionality. labels Dec 15, 2024
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

4 participants