Skip to content

Commit

Permalink
docs: add cmds and style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Oct 21, 2024
1 parent 661e0b9 commit 7eb6e32
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,35 @@ func (m ViewModel) Init(){}
func (m ViewModel) Update(){}
```

#### ui/status/view/go
#### ui/status/view.go

```go
package status

func (m ViewModel) View() string {
return "Amazing View"
}
```

#### ui/status/cmds.go

```go
package status

func EmitSomething(thing internal.Something) tea.Cmd {
return func() tea.Msg {
return thing
}
}

```

#### ui/status/style.go

```go
package status

import "github.com/charmbracelet/lipgloss"

var someStyle = lipgloss.NewStyle()
```

0 comments on commit 7eb6e32

Please sign in to comment.