| 29 | |
| 30 | #[derive(Bpaf, PartialEq, Debug)] |
| 31 | struct MainCommand { |
| 32 | /// whether to check for valid anchor references |
| 33 | #[bpaf(long)] |
| 34 | check_anchors: bool, |
| 35 | |
| 36 | /// path to directory of markdown files to use for reporting errors |
| 37 | #[bpaf(long("sources"))] |
| 38 | sources_path: Option<PathBuf>, |
| 39 | |
| 40 | /// enable specialized output for GitHub actions |
| 41 | #[bpaf(long)] |
| 42 | github_actions: bool, |
| 43 | |
| 44 | /// the static file path to check |
| 45 | /// |
| 46 | /// This will be assumed to be the root path of your server as well, so |
| 47 | /// href="/foo" will resolve to that folder's subfolder foo |
| 48 | #[bpaf(positional("BASE-PATH"))] |
| 49 | base_path: Option<PathBuf>, |
| 50 | } |
| 51 | |
| 52 | #[derive(Bpaf, PartialEq, Debug)] |
| 53 | #[bpaf(options)] |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…