Skip to content

feat (logging): passos humanos com horário e cor - #61

Merged
c1r5 merged 3 commits into
feat/attach-pipelinefrom
feat/logging
Sep 23, 2026
Merged

c1r5 merged 3 commits into
feat/attach-pipelinefrom
feat/logging

Conversation

@c1r5

@c1r5 c1r5 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Issue

Closes #60

Depende de #58.

O que este step adiciona

Os passos humanos passam por internal/logging. Só esse pacote importa github.com/charmbracelet/log.

15:04:05 [ok] [patch] debuggable
15:04:05 [skip] [patch] already debuggable
15:04:05 [ok] [attach] 127.0.0.1:8700

No terminal, [ok] e [skip] e o nome do módulo saem com cor. Em pipe ou teste, a mesma linha sem ANSI. --json, as tabelas e classe#metodo não mudam.

Como testar

  • go test ./...
  • go build -o jdt .
  • jdt patch <decode> imprime horário, [patch] e a ação (debuggable / NSC).

Risco

  • nenhum / n/a
  • repack / assinatura
  • outro:

- #60
- internal/logging é o único importador da lib colorida
- linha HH:MM:SS [ok|skip] [módulo] ação
- cor no TTY; buffer e pipe ficam sem ANSI
- #60
- patch, pull, install, attach, reset e o skip de targets usam internal/logging
- cada módulo fica em [patch], [jdwp], [attach], …
- o one-liner passa a 15:04:05 [ok] [attach] 127.0.0.1:PORT
- --json, tabelas e classe#metodo ficam fora do logger
@c1r5
c1r5 added this pull request to stack #59 September 23, 2026 20:48
@c1r5 c1r5 changed the title feat/logging feat (logging): passos humanos com horário e cor Sep 23, 2026
@c1r5
c1r5 marked this pull request as ready for review September 23, 2026 20:49
- #60
- pull, decode, encode, sign e install logam quando terminam
- set-debug-app e launch aparecem antes do wait do JDWP
- --json continua sem essas linhas
@c1r5
c1r5 merged commit 3da9bd7 into main Sep 23, 2026
1 check passed
@c1r5
c1r5 deleted the feat/logging branch September 24, 2026 23:23
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

Successfully merging this pull request may close these issues.

spec(logging): passos coloridos por módulo

1 participant