MCPcopy Create free account
hub / github.com/github/gh-aw / parseHourlyBase

Method parseHourlyBase

pkg/parser/schedule_parser.go:416–422  ·  view source on GitHub ↗
(hasWeekdaysSuffix bool)

Source from the content-addressed store, hash-verified

414}
415
416func (p *ScheduleParser) parseHourlyBase(hasWeekdaysSuffix bool) (string, error) {
417 scheduleLog.Printf("Parsing hourly schedule: weekdays=%v", hasWeekdaysSuffix)
418 if len(p.tokens) == 1 || (len(p.tokens) == 3 && hasWeekdaysSuffix) {
419 return formatHourlyIntervalCron(1, hasWeekdaysSuffix), nil
420 }
421 return "", errors.New("hourly schedule does not support 'at time' clause, use 'hourly' without additional parameters")
422}
423
424func (p *ScheduleParser) parseWeeklyBase() (string, error) {
425 scheduleLog.Printf("Parsing weekly schedule: token_count=%d", len(p.tokens))

Callers 1

parseBaseMethod · 0.95

Calls 2

formatHourlyIntervalCronFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected