The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Whim::Command::query - Query command

SYNOPSIS

  Usage: whim query [OPTIONS]

  The default action is to display a list of stored webmentions, optionally
  filtered by the provided options. You can run other actions by providing
  different options, as listed below.

  Options:
    Actions:
      --count    Return only a count of matching webmentions
      --list     Display the current blocklist
      --block    Add source strings (via --source) to the blocklist
      --unblock  Remove source strings (via --source) from the blocklist

    Filters:                    Limit affected webmentions to those...
      --before=2020-01-01          received before this date
      --after=2020-01-01           received after this date
      --on=2020-01-01              received on this date exactly
      --source=example.com/foo     whose source URL contains this string
      --not-source=example.com/bar whose source URL lacks this string
      --target=mysite.example/bar  whose target URL contains this string

DESCRIPTION

This command queries Whim's webmention database, either to display summaries of webmentions that meet criteria specified as command-line options, or to manage one's blocklist.

You can specify multiple --source or --not-source flags, as needed.

NOTES AND BUGS

The blocklist-management stuff should really have its own command. (GitHub issue #32)

This should be able to output JSON representations of webmentions (GitHub issue #8)

SEE ALSO

whim