Skip to content

[deckhouse-cli] Group Taskfile tasks and list them on bare task#400

Merged
ldmonster merged 1 commit into
mainfrom
chore/group-tasks-in-taskfile
Jul 13, 2026
Merged

[deckhouse-cli] Group Taskfile tasks and list them on bare task#400
ldmonster merged 1 commit into
mainfrom
chore/group-tasks-in-taskfile

Conversation

@Glitchy-Sheep

Copy link
Copy Markdown
Contributor

Summary

Bare task and task --list printed a flat wall of ~25 tasks with no structure. Now bare task prints them grouped by namespace.

  • Add a default task running the new tools/list-tasks.sh (POSIX sh + awk, no new deps); Windows falls back to plain task --list.
  • The script reads task --list --json, groups tasks by the segment before the first colon, and keeps Taskfile definition order. Per-group emoji come from TASKLIST_EMOJI; NO_COLOR / FORCE_COLOR are respected.
  • Rename for consistency with existing namespaces: checkKubectl -> check:kubectl, checksum -> package:checksum.
  • Mark _package:dist as internal: true and tighten task descriptions.

Before

2026-07-13 AT 04 30@2x

After

2026-07-13 AT 04 29@2x

Notes

  • CI is unaffected: release.yaml only calls build-and-package, test, lint:check, build:dist:all.
  • The renames are user-facing - local scripts using task checkKubectl / task checksum need updating.

@Glitchy-Sheep Glitchy-Sheep self-assigned this Jul 13, 2026
@Glitchy-Sheep Glitchy-Sheep added the enhancement New feature or request label Jul 13, 2026
- Bare `task` prints tasks grouped by name prefix, with per-group emoji and colors (`tools/list-tasks.sh`).
- The lister is POSIX sh + awk over `task --list --json`, no extra tools needed; Windows falls back to plain `task --list`.
- `checkKubectl` and `checksum` became `check:kubectl` and `package:checksum`; task names CI calls are unchanged.
- Task descriptions follow one short style; `_package:dist` is marked `internal`.

Signed-off-by: Roman Berezkin <roman.berezkin@flant.com>
@Glitchy-Sheep
Glitchy-Sheep force-pushed the chore/group-tasks-in-taskfile branch from c038cc8 to 8d7be94 Compare July 13, 2026 03:58
@Glitchy-Sheep
Glitchy-Sheep marked this pull request as ready for review July 13, 2026 09:26
@Glitchy-Sheep
Glitchy-Sheep requested a review from ldmonster as a code owner July 13, 2026 09:26
@ldmonster
ldmonster merged commit 0c72765 into main Jul 13, 2026
5 checks passed
@ldmonster
ldmonster deleted the chore/group-tasks-in-taskfile branch July 13, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants