You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
610 B

  1. package commands
  2. import (
  3. "fmt"
  4. "git.aiterp.net/lucifer3/server/internal/formattools"
  5. )
  6. type SetName struct {
  7. ID string
  8. Name string
  9. }
  10. func (c SetName) CommandDescription() string {
  11. return fmt.Sprintf("SetName(%v, %s)", c.ID, c.Name)
  12. }
  13. type AddTag struct {
  14. IDs []string
  15. Tag string
  16. }
  17. func (c AddTag) CommandDescription() string {
  18. return fmt.Sprintf("AddTag(%v, %s)", formattools.CompactIDList(c.IDs), c.Tag)
  19. }
  20. type RemoveTag struct {
  21. IDs []string
  22. Tag string
  23. }
  24. func (c RemoveTag) CommandDescription() string {
  25. return fmt.Sprintf("RemoveTag(%v, %s)", formattools.CompactIDList(c.IDs), c.Tag)
  26. }