zeroclickinfo-goodies/lib/DDG/Goodie/CrontabCheatSheet.pm

50 lines
1.2 KiB
Perl

package DDG::Goodie::CrontabCheatSheet;
# ABSTRACT: Some examples of crontab syntax
use strict;
use DDG::Goodie;
zci answer_type => "cron_cheat";
zci is_cached => 1;
name "CrontabCheatSheet";
description "Crontab cheat sheet";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/CrontabCheatSheet.pm";
category "cheat_sheets";
topics "computing", "geek", "programming", "sysadmin";
primary_example_queries 'crontab help', 'crontab cheat sheet', 'crontab example';
triggers startend => (
'cron cheat sheet',
'cron cheatsheet',
'cron guide',
'cron help',
'cron quick reference',
'cron reference',
'cron example',
'cron examples',
'crontab cheat sheet',
'crontab cheatsheet',
'crontab guide',
'crontab help',
'crontab quick reference',
'crontab reference',
'crontab example',
'crontab examples'
);
attribution github => ["nkorth", "Nathan Korth"];
my $HTML = share("crontab_cheat_sheet.html")->slurp(iomode => '<:encoding(UTF-8)');
my $TEXT = share("crontab_cheat_sheet.txt")->slurp(iomode => '<:encoding(UTF-8)');
handle remainder => sub {
return
heading => 'Cron Cheat Sheet',
html => $HTML,
answer => $TEXT,
};
1;