Skip to content

Commit

Permalink
NEXT-37318 - refactor copy-profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKemper committed Jul 29, 2024
1 parent 949fe2e commit 3352229
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 41 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ categories = ["command-line-utilities", "development-tools", "web-programming"]
authors = ["shopware AG <[email protected]>", "Malte Janz <[email protected]>"]
repository = "https://github.com/shopware/sw-sync-cli"
license = "MIT"
build = "src/build.rs"

[dependencies]
clap = { version = "4.5.9", features = ["derive"] }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
39 changes: 0 additions & 39 deletions src/build.rs

This file was deleted.

19 changes: 18 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,24 @@ mod cli;
mod config_file;
mod data;

include!(concat!(env!("OUT_DIR"), "/profiles.rs"));
const PROFILES: &[(&str, &str)] = &[
(
"manufacturer.yaml",
include_str!("../profiles/manufacturer.yaml"),
),
(
"product_required.yaml",
include_str!("../profiles/product_required.yaml"),
),
(
"product_variants.yaml",
include_str!("../profiles/product_variants.yaml"),
),
(
"product_with_manufacturer.yaml",
include_str!("../profiles/product_with_manufacturer.yaml"),
),
];

#[derive(Debug)]
pub struct SyncContext {
Expand Down

0 comments on commit 3352229

Please sign in to comment.