parser

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package parser manages holds the logic behind the sub command `parse` this package is responsible for parsing a crontab file into valid config yaml file

Index

Constants

This section is empty.

Variables

View Source
var (
	ParserCmd = &cobra.Command{
		Use:       "parse <crontab file path>",
		ValidArgs: []string{"crontab file path"},
		Short:     "Parse crontab syntax and converts it into yaml syntax for crontab-go",
		Run:       run,
	}
)

Functions

This section is empty.

Types

type CronString

type CronString struct {
	// contains filtered or unexported fields
}

func NewCronString

func NewCronString(cron string) CronString

func (*CronString) ParseConfig

func (s *CronString) ParseConfig(
	pattern string,
	hasUser bool,
) (*config.Config, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL