diff --git a/Cargo.lock b/Cargo.lock index c192ad2..232ed4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -418,7 +418,7 @@ dependencies = [ ] [[package]] -name = "cuddle_cli" +name = "cuddle" version = "0.1.0" dependencies = [ "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 87e3831..989353c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,3 @@ [workspace] -members = ["cuddle_cli", "examples/base", "ci"] +members = ["cuddle", "examples/base", "ci"] resolver = "2" diff --git a/README.md b/README.md index 4861714..a13acdc 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Cuddle CLI is a Rust command-line interface application designed to manage configuration variables and scripts across projects. It simplifies sharing of code and workflows, making development and collaboration smoother and more -efficient. This project is published on crates.io as `cuddle_cli`. +efficient. This project is published on crates.io as `cuddle`. ## Table of Contents @@ -22,7 +22,7 @@ Make sure you have Rust and Cargo installed. You can install Rust and Cargo from To install Cuddle CLI, run: ```sh -cargo install cuddle_cli +cargo install cuddle ``` ## Usage diff --git a/ci/src/main.rs b/ci/src/main.rs index 18f5e84..7ea505e 100644 --- a/ci/src/main.rs +++ b/ci/src/main.rs @@ -14,7 +14,7 @@ async fn main() -> eyre::Result<()> { HostDirectoryOptsBuilder::default() .include(vec![ "ci/", - "cuddle_cli/", + "cuddle/", "examples", "Cargo.lock", "Cargo.toml", @@ -86,7 +86,7 @@ async fn dind_image( "--target", &format!("{architecture}-unknown-linux-musl"), "--path", - "cuddle_cli", + "cuddle", "--profile=release", ]); diff --git a/examples/templates/scripts/test_render_template.sh b/examples/templates/scripts/test_render_template.sh index 690b84e..50dd6f9 100755 --- a/examples/templates/scripts/test_render_template.sh +++ b/examples/templates/scripts/test_render_template.sh @@ -1,6 +1,6 @@ #!/bin/bash -CUDDLE_FETCH_POLICY=never cuddle_cli render_template \ +CUDDLE_FETCH_POLICY=never cuddle render_template \ --template-file "$TMP/input.txt.tmpl" \ --destination "$TMP/input.txt" \ --extra-var "extravar=someextravar" diff --git a/scripts/install.sh b/scripts/install.sh index 026797a..5318ba0 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,5 +1,5 @@ #!/bin/bash -cargo install --path cuddle_cli/ +cargo install --path cuddle/ cuddle --version diff --git a/templates/build_cuddle_image.Dockerfile b/templates/build_cuddle_image.Dockerfile index dd93f3b..45a1f17 100644 --- a/templates/build_cuddle_image.Dockerfile +++ b/templates/build_cuddle_image.Dockerfile @@ -16,7 +16,7 @@ WORKDIR /app/cuddle/ COPY . . -RUN cargo install --target x86_64-unknown-linux-musl --path cuddle_cli +RUN cargo install --target x86_64-unknown-linux-musl --path cuddle FROM docker:dind