crondoc

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2016 License: MIT Imports: 8 Imported by: 0

README

crondoc

generate crontab document tool

Description

  • crondoc is tool what generate crontab document from crontab or stdin
  • Grouping up to line break

Usage

$ crodoc /etc/crontab
$ crontab -l | crodoc -s
usage: crondoc [OPTIONS] <args> crontab_path

argument
	[crontab_path] generate crontab document

Available options are:
	-v --version	print versions
	-h --help		print help
	-s --stdin		generate crontab document from stdin

document exsample

it will be such an output ....


  • SHELL=/bin/bash
  • PATH=/sbin:/bin:/usr/sbin:/usr/bin
  • MAILTO=root,hoge@mail.co.jp
  • HOME=/

run-parts

min hour day month day week command
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * Sun root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

monday.sh

  • Author : hoge
  • param : env[dev|stg|prod]
  • start every monday
min hour day month day week command
0 10 * * Mon sh /home/hoge/happy_monday.sh prod

document format

only markdown now ....

document tags

  • @title
  • @author
  • @param

Install

Just want the binary?

Go to the releases page

To install, use go get:

$ go get -d github.com/ogasawara_takahiro/crondoc

Contribution

  1. Fork (https://github.com/ogataka50/crondoc/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

TODO

  • Selectable output format
  • Add many types of tags

License

MIT

Author

ogataka50

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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