cron-parser

command module
v0.0.0-...-30035b8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

cron-parser

Cron-Parser is a Simple CLI written in Go to parse cron expressions.

Prerequisites

Description

This project has been written in Go and tested with version 1.18.3. For speed and consistency with other Go CLI tools, it was initialised using the Cobra CLI.

Getting Started

Build the project from within the Project Directory

cd project_dir #!replace with project location

go mod tidy
go build -o cron-parser .

chmod +x ./cron-parser

Usage

./cron-parser "23 0-20/2 * * * /usr/bin find"     
minute        23
hour          0 2 4 6 8 10 12 14 16 18 20
day of month  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
month         1 2 3 4 5 6 7 8 9 10 11 12
day of week   0 1 2 3 4 5 6
command       /usr/bin/find

Contributing

In order to add further CLI functions, you should install the cobra-cli following their instructions and then using cobra-cli add <command> as described here

Documentation

Overview

Copyright © 2022 Peri Thompson

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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