The feed-cli package

[Tags: bsd3, program]

This program generates RSS 2.0 (http:www.rssboard.org/rss-2-0-1-rv-6) feeds based on command line arguments. Use it to easily create and update feeds from shell scripts, build scripts, cron jobs, CGIs, or other programs instead of using an RSS or Atom library.

eg: feed-cli new-item -tentry of the day -dThis is a description... -utmpfeed.xml -lhttp:www.syntaxpolice.org


[Skip to ReadMe]

Properties

Versions2008.5.3, 2009.7.5
Change logNone available
Dependenciesbase, directory, feed, old-locale, old-time, time, xml [details]
LicenseBSD3
Copyright(c) Isaac Potoczny-Jones, 2008
AuthorIsaac Potoczny-Jones <ijones@syntaxpolice.org>
MaintainerIsaac Potoczny-Jones <ijones@syntaxpolice.org>
CategoryWeb, Text
Home pagehttp://www.syntaxpolice.org/darcs_repos/feed-cli
Executablesfeed-cli
UploadedSun May 4 03:19:13 UTC 2008 by IsaacJones
DistributionsNixOS:2009.7.5
Downloads387 total (16 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
Last success reported on 2015-05-27 [all 2 reports]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for feed-cli-2008.5.3

See my announcement:
http://www.syntaxpolice.org/index.php/?q=node/425

Synopsis:

This program generates [RSS 2.0 http:\/\/www.rssboard.org\/rss-2-0-1-rv-6] 
feeds based on command line arguments.  Use it to create and update feeds
from shell scripts, build scripts, cron jobs, CGIs, or other programs instead
of using an RSS or Atom library.

Commands and args:

new-item: -iFILE (required, or -u): The feed to add this item to
          -oFILE (optional): otherwise, stdout
          -tTitle (required)
          -dDescription (required, or -D, or --pipe-mode)
          --pipe-mode: read description from STDIN
          -lhttp://example.com (optional): Item link
          -DFILE: read description from a file
          -uFILE (optional): Update this file, not valid with -i or -o. Same as -iFILE == -oFILE
          --limit (optional): Keep the number of items fixed. Drop the last item when adding a new item. Doesn't compare dates yet. Taken from the front since that's how we add them.
          --limit=NUM (optional): keep only the last NUM items.

new-feed: -oFILE (optional): otherwise, stdout
          -tTitle (required): feed title
          -dDescription (required): feed description
          -lhttp://example.com (required): Feed link

EXAMPLES:

See also the patterns directory.

# create an empty feed:
./feed-cli new-feed -tTitleOfFeed -d"Feed Description" -o/tmp/feed.xml  -lhttp://www.syntaxpolice.org

# add an item to that feed 
./feed-cli new-item -t"entry of the day" -d"This is a description of <b>this feed item</b>." -u/tmp/feed.xml  -lhttp://www.syntaxpolice.org

# pipe a command into a feed item
ls -l | ./feed-cli new-item --pipe-mode --pre -t"another entry of the day" -u/tmp/feed.xml  -lhttp://www.syntaxpolice.org