net-spider-cli-0.2.0.0: CLI option parsers for NetSpider objects

MaintainerToshio Ito <toshio9.ito@toshiba.co.jp>
Safe HaskellNone
LanguageHaskell2010

NetSpider.CLI.Snapshot

Description

This module defines CLI option parser for Query for snapshot graphs.

Synopsis

Documentation

parserSnapshotQuery :: SnapshotConfig n -> Parser (CLISnapshotQuery n) Source #

CLI option parser for Snapshot Query. Use makeSnapshotQuery to convert CLISnapshotQuery to Query.

Since: 0.2.0.0

makeSnapshotQuery Source #

Arguments

:: Query n na fla sla

base query

-> CLISnapshotQuery n 
-> Either String (Query n na fla sla)

Left: human-readable error message. Right: updated query

Make a Query by applying CLISnapshotQuery to the base query. The CLISnapshotQuery overwrites startsFrom and timeInterval fields.

It can fail to convert CLISnapshotQuery to Query fields. In that case, the result is Left with a human-readable error message.

Since: 0.2.0.0

data SnapshotConfig n Source #

Configuration for option parser for Snapshot Query.

Since: 0.2.0.0

Constructors

SnapshotConfig 

Fields

data CLISnapshotQuery n Source #

Settings for Snapshot Query parsed from the command-line options. You can make Query by makeSnapshotQuery function.

Since: 0.2.0.0