diff --git a/history/helper.go b/history/helper.go index ddae37c..e063ff0 100644 --- a/history/helper.go +++ b/history/helper.go @@ -46,7 +46,14 @@ func (h *History) Grp(grp string) *History { h.Group = grp return h } -func (h *History) Scp(sco string) *History { - h.Scope = sco +func (h *History) Scp(scp string) *History { + h.Scope = scp + return h +} + +// Mod alter the derived module name, and put the original mod to scope +func (h *History) Mod(mod string) *History { + h.Scope = h.Module + h.Module = mod return h }