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

Windows ms-dos file support 'Batch File' #1943

Closed
benzaria opened this issue Dec 7, 2024 · 2 comments
Closed

Windows ms-dos file support 'Batch File' #1943

benzaria opened this issue Dec 7, 2024 · 2 comments
Labels
state: invalid This doesn't seem right.

Comments

@benzaria
Copy link

benzaria commented Dec 7, 2024

Request for Windows Batch File Support

It would be fantastic to have support for automatically formatting batch files. Currently, formatting these files is only possible manually, which can be tedious and error-prone.

Batch files are often overlooked, and their formatting tends to be inconsistent. While batch is not a rich scripting language, its simplicity means that adding support shouldn't require extensive work. The key elements to consider include:

  • Conditional Statements: if, else
  • Loops: for
  • Labels as Functions: e.g., :label
  • Built-in Keywords: Common commands like echo, set, etc.

Additionally, please ensure the formatter gracefully handles raw bits, as these are frequently used in batch files. For example, many users rely on ESC sequences for special purposes.

I also recommend not implementing a snippets checker, as many batch users rely on non-operational constructs (no-ops) for creative and often obscure tasks. A common example is embedding JavaScript within batch files. Adding a strict checker might interfere with such patterns.
And DO NOT make spaces between Redirection operation < >: this 0</* :: is not 0 < /* ::.

To summarize, a formatter alone—without enforcing syntax validation—would greatly benefit the batch file community and enhance productivity.

Thank you for considering this feature!

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Dec 7, 2024
@benzaria benzaria changed the title Windows ms-dos file support ' Batch File' Windows ms-dos file support 'Batch File' Dec 7, 2024
@pd93
Copy link
Member

pd93 commented Dec 8, 2024

I'm a bit confused as to what batch files have to do with Task. Task is not a formatter, it is a Task runner.

@pd93 pd93 closed this as completed Dec 8, 2024
@pd93 pd93 added state: invalid This doesn't seem right. and removed state: needs triage Waiting to be triaged by a maintainer. labels Dec 8, 2024
@benzaria
Copy link
Author

benzaria commented Dec 8, 2024

how in the world did i post this issue here 😂

I'm so sorry i ment it for an other repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: invalid This doesn't seem right.
Projects
None yet
Development

No branches or pull requests

3 participants