2024-02-14 16:36:12 +01:00
|
|
|
package sway
|
|
|
|
|
2024-02-14 17:21:50 +01:00
|
|
|
// GetConfig returns the content of the content file.
|
|
|
|
// Includes are not handled
|
2024-02-14 16:48:50 +01:00
|
|
|
func (c *Client) GetConfig() (string, error) {
|
2024-02-14 16:36:12 +01:00
|
|
|
cfg, err := sendMessage[config](c, 9, "")
|
|
|
|
if err != nil {
|
|
|
|
return "", err
|
|
|
|
}
|
|
|
|
return cfg.Config, nil
|
|
|
|
}
|