command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Feb 19, 2016
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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 |
only markdown now ....
Install
Just want the binary?
Go to the releases page
To install, use go get
:
$ go get -d github.com/ogasawara_takahiro/crondoc
Contribution
- Fork (https://github.com/ogataka50/crondoc/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
Run test suite with the go test ./...
command and confirm that it passes
- Run
gofmt -s
- Create a new Pull Request
TODO
- Selectable output format
- Add many types of tags
License
MIT
Author
ogataka50
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.