1
0
mirror of https://github.com/go-task/task.git synced 2025-02-09 13:47:06 +02:00
Henrique Corrêa 88c4ba1740
feat: make Taskfile initialization less verbose by default (#2011)
* change what is printed when creating Taskfile

When using --init to create a new Taskfile, it used to print the whole contents of the file to the terminal, which was unnecessarily verbose (and honestly felt unintentional).

Now only the filename is printed by default and the --silent and --verbose flags can be used to control the behavior (print nothing or content + filename, respectively).

* include additional new line with -i -v

it looks slightly better in the terminal.

* print init success text in green

* fix TestInit, create and pass in a logger

* move logging outside of InitTaskfile

- revert API changes made to InitTaskfile
- make consts in init.go public so they can be accessed from task.go
- rename variable "logger" to "log" in task.go to fix conflict with logger package

* move TestInit into init_test.go file

as requested by pd93.
2025-01-29 22:41:17 +00:00
2025-01-26 00:56:25 +00:00
2025-01-25 09:14:26 +01:00
2025-01-18 11:15:57 -03:00
2024-09-02 19:21:53 +00:00
2024-08-14 08:37:05 -05:00
2024-08-14 08:37:05 -05:00
2017-02-28 09:15:25 -03:00
2025-01-18 11:15:57 -03:00
2025-01-18 11:15:57 -03:00
2025-01-18 10:11:00 -03:00

Task

Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.

Installation | Documentation | Twitter | Bluesky | Mastodon | Discord

Gold Sponsors

Description
A task runner / simpler Make alternative written in Go
https://taskfile.dev/ Readme MIT 32 MiB
Languages
Go 89.4%
Shell 6%
TypeScript 1.8%
CSS 1.2%
JavaScript 1.1%
Other 0.5%