GitRepositoryManager/internal/commands/command.go

16 lines
245 B
Go
Raw Normal View History

2021-11-02 18:19:31 +00:00
package commands
import (
"gitlab.com/revalus/grm/internal/config"
)
2021-11-02 18:19:31 +00:00
type Command interface {
2021-11-08 17:30:45 +00:00
Command(repoCfg config.RepositoryConfig) CommandStatus
2021-11-02 18:19:31 +00:00
}
type CommandStatus struct {
Name string
Changed bool
Message string
Error bool
}