package stackops import ( basetypes "code.apps.glenux.net/glenux/kiwimix/pkg/basetypes" ) type SaveOperation struct { filePath string } func NewSaveOperation(filePath string) *SaveOperation { saveop := new(SaveOperation) return saveop } func (op *SaveOperation) Execute(stack *basetypes.Stack) error { cal, err := basetypes.ParseCalendarFile(op.filePath) if err != nil { return err } stack.Push(cal) return nil }