NAME
aki - The command-line data processor for web content
SYNOPSIS
$ aki [options] URL
OPTIONS
-d --decoder specify deoder(default: auto detect)
--agent user agent
--timeout connection timeout
-m, --method HTTP method(default: GET)
--cookie cookie file path for request
-p, --pointer JSON pointer string(See: JSON::Pointer)
-ie, --in-enc input encoding(default: utf8)
-oe, --out-enc output encoding(default: utf8)
--color colorize the result
--raw show raw content
--verbose show verbose information
-h, --help show this help
-v, --version show the version
EXAMPLE
$ aki http://example.com/json --pointer '/foo/bar/0'
---
baz 123
qux "foobar"
---
CONFIGURATION
aki
command will look for a configuration file before reading its command line parameters.
The default configuration file is .akirc
but you can specify it by --rc
option. And the location of a configuration file is $HOME
but if the AKIRC_DIR
environment variable is set, aki
will look for config in that directory or current.
The configuration file is just a list of names and values, separated by colons. Values that take lists are just space separated. A sample configuration file might read:
color: 1
agent: MyAgent/1.0
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
SEE ALSO
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.