Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
2cd9509fcb
commit
26ef1cb0cd
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -418,7 +418,7 @@ dependencies = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cuddle_cli"
|
||||
name = "cuddle"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
|
@ -1,3 +1,3 @@
|
||||
[workspace]
|
||||
members = ["cuddle_cli", "examples/base", "ci"]
|
||||
members = ["cuddle", "examples/base", "ci"]
|
||||
resolver = "2"
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
]);
|
||||
|
||||
|
@ -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"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
cargo install --path cuddle_cli/
|
||||
cargo install --path cuddle/
|
||||
|
||||
cuddle --version
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user