From c0d308295007bc500846eea0e1ba7361378c0826 Mon Sep 17 00:00:00 2001 From: Jan Vanbuel Date: Sat, 16 Nov 2024 17:08:53 +0100 Subject: [PATCH] fix bug renaming of crate --- Cargo.toml | 4 ++++ Makefile | 2 +- README.md | 2 +- src/main.rs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e6e6c46..ab651ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,10 @@ license = "MIT" repository = "https://github.com/jvanbuel/flowrs" authors = ["janvanbuel@hotmail.com"] +[[bin]] +name = "flowrs" +path = "src/main.rs" + [dependencies] ansi-to-tui = { version = "7.0.0" } backtrace = "0.3.73" diff --git a/Makefile b/Makefile index 8dad8a0..94365ad 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ build: - cargo build --release && cp target/debug/flowrs . + cargo build --release && cp target/release/flowrs . logo: diff --git a/README.md b/README.md index 0d3234c..c741fe8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ cargo install --path . You can register an Airflow server instance with the `flowrs config add` command: -TODO: Add example of prompt + This creates an entry in a `~/.flowrs` configuration file. If you have multiple Airflow servers configured, you can easily switch between them in `flowrs` starting screen. diff --git a/src/main.rs b/src/main.rs index 5ed5a72..be77093 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ lazy_static::lazy_static! { use app::error::Result; #[derive(Parser)] -#[clap(name = "flowrs", version, about, before_help=ASCII_LOGO)] +#[clap(name="flowrs", bin_name="flowrs", version, about, before_help=ASCII_LOGO)] struct FlowrsApp { #[clap(subcommand)] command: Option,