summaryrefslogtreecommitdiff
path: root/server/src/bin/graph.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-01 20:09:06 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-01 20:09:06 +0200
commiteb7fa5392997ac5c165d1ae011e57a1b7fcac084 (patch)
treededaf078a8817a976ead6568dbf93bf79f3f395b /server/src/bin/graph.rs
parent4ad82d4944bc8ea00fcfe324c8004b079ec48c18 (diff)
downloadhurrycurry-eb7fa5392997ac5c165d1ae011e57a1b7fcac084.tar
hurrycurry-eb7fa5392997ac5c165d1ae011e57a1b7fcac084.tar.bz2
hurrycurry-eb7fa5392997ac5c165d1ae011e57a1b7fcac084.tar.zst
server support for nested map directory
Diffstat (limited to 'server/src/bin/graph.rs')
-rw-r--r--server/src/bin/graph.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs
index 7019de9c..0bc3702f 100644
--- a/server/src/bin/graph.rs
+++ b/server/src/bin/graph.rs
@@ -15,7 +15,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-use anyhow::{anyhow, Result};
+use anyhow::Result;
use hurrycurry_protocol::{Demand, ItemIndex, Recipe, RecipeIndex};
use hurrycurry_server::data::DataIndex;
@@ -26,12 +26,7 @@ async fn main() -> Result<()> {
println!("digraph {{");
- let rn = std::env::args()
- .nth(1)
- .ok_or(anyhow!("first arg should be recipe set name"))?;
-
- let (data, _, _) = index.generate(format!("5star-{rn}")).await?;
-
+ let (data, _, _) = index.generate("5star").await?;
for i in 0..data.item_names.len() {
println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i)))
}