blob: 30a56c814486fb83c7bae0b4c4c5361bb6123928 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
pub mod app; // Runs the config binary
pub mod config; // Read the config file(s) for metric and action specs.
#[cfg(test)]
mod test;
use {crate::config::OutputFormat, structopt::StructOpt};
#[derive(StructOpt, Debug)]
pub struct Options {
/// Config files
#[structopt(long = "config")]
config_files: Vec<String>,
/// Directories to read diagnostic (bugreport) files from.
#[structopt(long = "bugreport")]
data_directories: Vec<String>,
/// How to print the results.
#[structopt(long = "output-format", default_value = "text")]
output_format: OutputFormat,
/// Which tags we should include
#[structopt(long = "tag")]
tags: Vec<String>,
/// Which tags we should exclude
#[structopt(long = "exclude-tag")]
exclude_tags: Vec<String>,
}