Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
leg100 committed Mar 21, 2024
1 parent 5f0fe16 commit d7c7c56
Show file tree
Hide file tree
Showing 28 changed files with 665 additions and 653 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ require (

replace github.com/mattn/go-runewidth => github.com/leg100/go-runewidth v0.0.16-0.20240317085039-79cdd3ecf674

replace github.com/charmbracelet/bubbletea => github.com/leg100/bubbletea v0.25.1-0.20240319155826-3bbfacbc5292
//replace github.com/charmbracelet/bubbletea => github.com/leg100/bubbletea v0.25.1-0.20240319155826-3bbfacbc5292
replace github.com/charmbracelet/bubbletea => ../bubbletea
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/leg100/bubbletea v0.25.1-0.20240319155826-3bbfacbc5292 h1:35Rgc3u+9GUleIt9zFowLVcJBx6sCrQC2DQIGnSqmQ4=
github.com/leg100/bubbletea v0.25.1-0.20240319155826-3bbfacbc5292/go.mod h1:EN3QDR1T5ZdWmdfDzYcqOCAps45+QIJbLOBxmVNWNNg=
github.com/leg100/go-runewidth v0.0.16-0.20240317085039-79cdd3ecf674 h1:yokd6cdtoBgUwMIItYfeSX2sc0LmimB1DFAMAISP0Rw=
github.com/leg100/go-runewidth v0.0.16-0.20240317085039-79cdd3ecf674/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
Expand Down
8 changes: 3 additions & 5 deletions internal/logging/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Message struct {
Time time.Time
Level string
Message string `json:"msg"`
Attributes map[string]string
Attributes []string

// id uniquely identifies the log message.
id resource.ID
Expand Down Expand Up @@ -93,10 +93,8 @@ func (l *Logger) Write(p []byte) (int, error) {
case "msg":
msg.Message = string(d.Value())
default:
if msg.Attributes == nil {
msg.Attributes = make(map[string]string)
}
msg.Attributes[string(d.Key())] = string(d.Value())
s := fmt.Sprintf("%s=%s", d.Key(), d.Value())
msg.Attributes = append(msg.Attributes, s)
}
}
msgs = append(msgs, msg)
Expand Down
4 changes: 2 additions & 2 deletions internal/testdata/configs/envs/dev/backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ terraform {
}

resource "random_integer" "seconds" {
min = "20"
max = "60"
min = "1"
max = "2"
keepers = {
now = timestamp()
}
Expand Down
136 changes: 0 additions & 136 deletions internal/tui/columns.go

This file was deleted.

5 changes: 0 additions & 5 deletions internal/tui/common/messages.go

This file was deleted.

193 changes: 0 additions & 193 deletions internal/tui/keys.go

This file was deleted.

Loading

0 comments on commit d7c7c56

Please sign in to comment.