Skip to content

Commit

Permalink
request: add missing godoc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 24, 2024
1 parent 3b6c1ce commit 4cfadda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ func (c *RequestClient) ActiveWorkspace() (w Workspace, err error) {
return w, unmarshalResponse(response, &w)
}

// Animations command, similar to 'hyprctl animations'.
// Returns a [Animation] object.
func (c *RequestClient) Animations() (a [][]Animation, err error) {
response, err := c.doRequest("animations")
if err != nil {
Expand All @@ -231,6 +233,8 @@ func (c *RequestClient) Animations() (a [][]Animation, err error) {
return a, unmarshalResponse(response, &a)
}

// Binds command, similar to 'hyprctl binds'.
// Returns a [Bind] object.
func (c *RequestClient) Binds() (b []Bind, err error) {
response, err := c.doRequest("binds")
if err != nil {
Expand Down Expand Up @@ -279,7 +283,7 @@ func (c *RequestClient) Decorations(regex string) (d []Decoration, err error) {
return d, unmarshalResponse(response, &d)
}

// Decorations command, similar to `hyprctl devices`.
// Devices command, similar to `hyprctl devices`.
// Returns a [Devices] object.
func (c *RequestClient) Devices() (d Devices, err error) {
response, err := c.doRequest("devices")
Expand Down

0 comments on commit 4cfadda

Please sign in to comment.