Fix warning and add README

This commit is contained in:
Leo Le Bouter 2020-10-07 02:41:00 +02:00
parent 137f269b47
commit 77e02aa620
2 changed files with 17 additions and 1 deletions

View File

@ -1,2 +1,18 @@
# lasy-cli # lasy-cli
# How to install
1. Visit https://rustup.rs/ and follow instructions to install Rust
2. Run: `$ cargo install --git https://git.interhacker.space/lle-bout/lasy-cli.git --force`
# How to use
For example with <https://git.interhacker.space/teamlaser/LJ>:
`$ python clitools/generators/tunnel.py | clitools/filters/kaleidoscope.py | lasy-cli`
And it will print optimized points in the same format.
# How to update with latest changes from this repo
Re-run step 2 of installation

View File

@ -1,7 +1,7 @@
use std::{hash::Hash, hash::Hasher, io}; use std::{hash::Hash, hash::Hasher, io};
use anyhow::Result; use anyhow::Result;
use clap::{app_from_crate, crate_authors, crate_description, crate_name, crate_version, App, Arg}; use clap::{app_from_crate, crate_authors, crate_description, crate_name, crate_version, Arg};
use io::Write; use io::Write;
use lasy::{ use lasy::{
euler_graph_to_euler_circuit, interpolate_euler_circuit, point_graph_to_euler_graph, euler_graph_to_euler_circuit, interpolate_euler_circuit, point_graph_to_euler_graph,