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.

23 lines
431 B

  1. package commands
  2. import (
  3. "fmt"
  4. )
  5. type AddAlias struct {
  6. Match string `json:"match"`
  7. Alias string `json:"alias"`
  8. }
  9. func (c AddAlias) CommandDescription() string {
  10. return fmt.Sprintf("AddAlias(%v, %v)", c.Match, c.Alias)
  11. }
  12. type RemoveAlias struct {
  13. Match string `json:"match"`
  14. Alias string `json:"alias"`
  15. }
  16. func (c RemoveAlias) CommandDescription() string {
  17. return fmt.Sprintf("RemoveAlias(%v, %v)", c.Match, c.Alias)
  18. }