Skip to content

Commit

Permalink
feat(greenmask): look into release folder by default too
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod committed Aug 21, 2024
1 parent 9e20dad commit de634c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/bestool/src/actions/tamanu/greenmask_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ pub struct GreenmaskConfigArgs {

/// Folders containing table masking definitions.
///
/// By default, this is the `greenmask/config` folder in the Tamanu root.
///
/// Can be specified multiple times, entries will be merged.
///
/// By default, it will look in the `greenmask/config` folder in the Tamanu root, and the
/// `greenmask` folder in the Tamanu release folder. Non-existant folders are ignored.
#[arg(value_hint = ValueHint::DirPath)]
pub folders: Vec<PathBuf>,

Expand Down Expand Up @@ -152,6 +153,7 @@ pub async fn run(ctx: Context<TamanuArgs, GreenmaskConfigArgs>) -> Result<()> {
let mut transforms_dirs = ctx.args_sub.folders;
if transforms_dirs.is_empty() {
transforms_dirs.push(root.join("greenmask").join("config"));
transforms_dirs.push(tamanu_folder.join("greenmask"));
}

let mut transforms = HashMap::new();
Expand Down

0 comments on commit de634c8

Please sign in to comment.