Download firm_cli/src/query.rs from harvesthealth/browser-instance: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/spaces/harvesthealth/browser-instance/resolve/main/firm_cli/src/query.rs
- Command line
-
hf download hf://spaces/harvesthealth/browser-instance/firm_cli/src/query.rs
-
curl -L -o query.rs https://huggingface.co/spaces/harvesthealth/browser-instance/resolve/main/firm_cli/src/query.rs
457 Bytes
| use clap::ValueEnum; | |
| use firm_core::graph::Direction; | |
| /// Wraps the underlying graph direction enum, allowing it to be used by clap. | |
| pub enum CliDirection { | |
| To, | |
| From, | |
| } | |
| impl From<CliDirection> for Direction { | |
| fn from(dir: CliDirection) -> Direction { | |
| match dir { | |
| CliDirection::To => Direction::Incoming, | |
| CliDirection::From => Direction::Outgoing, | |
| } | |
| } | |
| } | |