Sync your own workout data from your "Strong" app
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

added version printing #15

+13 -4
+2 -2
Cargo.lock
··· 1230 1230 1231 1231 [[package]] 1232 1232 name = "strong-api-fetch" 1233 - version = "0.1.0" 1233 + version = "0.2.0" 1234 1234 dependencies = [ 1235 1235 "clickhouse", 1236 1236 "dotenvy", ··· 1245 1245 1246 1246 [[package]] 1247 1247 name = "strong-api-lib" 1248 - version = "0.1.0" 1248 + version = "0.2.0" 1249 1249 dependencies = [ 1250 1250 "reqwest", 1251 1251 "serde",
+3
Dockerfile
··· 4 4 RUN cd strong-api-fetch && RUSTFLAGS="-C debuginfo=2" cargo install --path . --debug 5 5 6 6 FROM debian:bookworm-slim 7 + ARG VERSION=0.1.0 8 + LABEL version="${VERSION}" 9 + LABEL org.opencontainers.image.version="${VERSION}" 7 10 RUN apt-get update && apt-get install -y \ 8 11 openssl \ 9 12 ca-certificates \
+1 -1
strong-api-fetch/Cargo.toml
··· 1 1 [package] 2 2 name = "strong-api-fetch" 3 - version = "0.1.0" 3 + version = "0.2.0" 4 4 edition = "2024" 5 5 6 6 [dependencies]
+6
strong-api-fetch/src/main.rs
··· 11 11 12 12 #[tokio::main] 13 13 async fn main() -> Result<(), Box<dyn std::error::Error>> { 14 + let args: Vec<String> = env::args().collect(); 15 + if args.len() > 1 && (args[1] == "--version" || args[1] == "-v") { 16 + println!("strong-api-fetch v{}", env!("CARGO_PKG_VERSION")); 17 + return Ok(()); 18 + } 19 + 14 20 dotenv().ok(); 15 21 16 22 // Load configuration from environment variables.
+1 -1
strong-api-lib/Cargo.toml
··· 1 1 [package] 2 2 name = "strong-api-lib" 3 - version = "0.1.0" 3 + version = "0.2.0" 4 4 edition = "2024" 5 5 6 6 [dependencies]