Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing with values read from file or generated from code? #140

Closed
jez9999 opened this issue Jul 5, 2018 · 2 comments
Closed

Replacing with values read from file or generated from code? #140

jez9999 opened this issue Jul 5, 2018 · 2 comments

Comments

@jez9999
Copy link

jez9999 commented Jul 5, 2018

I would like to transform some elements of my config file not with hard-coded values in a transform file, but either with the contents of another file or (preferably) a value generated from code. For example, in the case of generating a value from code, instead of this:

{
    "someSettings": {
        "@jdt.replace": {
            "timeTokenAtBuild": "1f3ac2"
        }
    }
}

... I want something like this:

{
    "someSettings": {
        "@jdt.replace": {
            "timeTokenAtBuild": [MyUtilitiesLibrary.GetCurrentTimeToken()]
        }
    }
}

Getting the value from something like a PowerShell script would be fine too. Can I do this with SlowCheetah currently? If not how hard would it be to extend it to allow this functionality?

@davilimap
Copy link
Member

This would be an additional feature for JDT, the transformation engine SlowCheetah uses for transforming JSON files. I'll open an issue there.

@jez9999
Copy link
Author

jez9999 commented Jul 5, 2018

@davilimap By the way, what is the equivalent engine SlowCheetah uses for transforming XML files? I'd like to submit an issue there, too.

ttstanley pushed a commit that referenced this issue Nov 14, 2024
Update GitHub Actions to more closely resemble AzP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants