initial commit

This commit is contained in:
2025-07-25 13:41:23 +02:00
commit 840de62902
27 changed files with 1772 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package niri
type WorkspaceReferenceArg struct {
ID *WorkspaceID `json:"Id,omitempty"`
Index *int `json:"Index,omitempty"`
Name *string `json:"Name,omitempty"`
}
func WorkspaceByID(id WorkspaceID) WorkspaceReferenceArg {
return WorkspaceReferenceArg{ID: &id}
}
func WorkspaceByIndex(index int) WorkspaceReferenceArg {
return WorkspaceReferenceArg{Index: &index}
}
func WorkspaceByName(name string) WorkspaceReferenceArg {
return WorkspaceReferenceArg{Name: &name}
}