| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PbtCli.Options
Description
The pbt-cli command line.
Synopsis
- data Command
- data SuitesOpts = SuitesOpts {}
- data TestsOpts = TestsOpts {
- tsoRoot :: FilePath
- tsoSuite :: Text
- tsoFormat :: TestsFormat
- tsoFilters :: Filters
- tsoDryRun :: Bool
- data RunOpts = RunOpts {}
- data ThreatModelsOpts = ThreatModelsOpts {}
- newtype DoctorOpts = DoctorOpts {}
- data SuitesFormat
- data TestsFormat
- data RunOutput
- data Filters = Filters {}
- parseCommand :: Parser Command
- commandParserInfo :: ParserInfo Command
Commands
What pbt-cli was asked to do.
Constructors
| Suites SuitesOpts | |
| Tests TestsOpts | |
| Run RunOpts | |
| ThreatModels ThreatModelsOpts | |
| Doctor DoctorOpts |
data SuitesOpts Source #
Constructors
| SuitesOpts | |
Fields | |
Instances
| Show SuitesOpts Source # | |
Defined in PbtCli.Options Methods showsPrec :: Int -> SuitesOpts -> ShowS # show :: SuitesOpts -> String # showList :: [SuitesOpts] -> ShowS # | |
| Eq SuitesOpts Source # | |
Defined in PbtCli.Options | |
Constructors
| TestsOpts | |
Fields
| |
Instances
Constructors
| RunOpts | |
data ThreatModelsOpts Source #
Constructors
| ThreatModelsOpts | |
Instances
| Show ThreatModelsOpts Source # | |
Defined in PbtCli.Options Methods showsPrec :: Int -> ThreatModelsOpts -> ShowS # show :: ThreatModelsOpts -> String # showList :: [ThreatModelsOpts] -> ShowS # | |
| Eq ThreatModelsOpts Source # | |
Defined in PbtCli.Options Methods (==) :: ThreatModelsOpts -> ThreatModelsOpts -> Bool # (/=) :: ThreatModelsOpts -> ThreatModelsOpts -> Bool # | |
newtype DoctorOpts Source #
Constructors
| DoctorOpts | |
Instances
| Show DoctorOpts Source # | |
Defined in PbtCli.Options Methods showsPrec :: Int -> DoctorOpts -> ShowS # show :: DoctorOpts -> String # showList :: [DoctorOpts] -> ShowS # | |
| Eq DoctorOpts Source # | |
Defined in PbtCli.Options | |
Shared
data SuitesFormat Source #
How to print a discovery result.
SuitesList is the default: a bare list of names is what a person scanning
the output, or a shell pipeline consuming it, actually wants from a listing
command. Every richer view is one flag away.
Constructors
| SuitesList | one suite name per line (the default). |
| SuitesJson | the full document as indented JSON, in the documented field order. |
| SuitesJsonCompact | the full document as single-line JSON, for piping. |
| SuitesTable | aligned table with package, compatibility and |
| SuitesTsv | the legacy 5-column tab-separated format. |
Instances
| Show SuitesFormat Source # | |
Defined in PbtCli.Options Methods showsPrec :: Int -> SuitesFormat -> ShowS # show :: SuitesFormat -> String # showList :: [SuitesFormat] -> ShowS # | |
| Eq SuitesFormat Source # | |
Defined in PbtCli.Options | |
data TestsFormat Source #
How to print a suite's test tree.
Constructors
| TestsList |
|
| TestsJson | the suite's own |
| TestsTree | nested groups with ids. |
Instances
| Show TestsFormat Source # | |
Defined in PbtCli.Options Methods showsPrec :: Int -> TestsFormat -> ShowS # show :: TestsFormat -> String # showList :: [TestsFormat] -> ShowS # | |
| Eq TestsFormat Source # | |
Defined in PbtCli.Options | |
What run puts on stdout.
The default hands the child's stdio straight through, so a plain
pbt-cli run looks exactly like the cabal test it wraps. The other two
modes ask the suites for --streaming-json and then either render the events
or forward them.
Constructors
| RunConsole | cabal's and Tasty's own console output (the default). |
| RunStream | a live, human-readable rendering of the streaming events. |
| RunJson | the streaming events as NDJSON, each tagged with its suite. |
Instances
Test-selection options common to the commands that actually run a suite.
These are forwarded to the test binary rather than interpreted here, so a
suite built against a newer convex-tasty-streaming than this binary still
gets them intact.
Constructors
| Filters | |
Fields
| |
Parsing
commandParserInfo :: ParserInfo Command Source #
The full parser, with --help and --version attached.