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

Is there a command line version of this? #7

Open
swcurran opened this issue Nov 9, 2023 · 1 comment
Open

Is there a command line version of this? #7

swcurran opened this issue Nov 9, 2023 · 1 comment

Comments

@swcurran
Copy link

swcurran commented Nov 9, 2023

I'd like to have a command line ability to pass in a file (or standard input) JSON with SAID identifiers embedded and have the SAIDs inserted into the output.

So I can pass in this file (or standard in):

[
    {
        "capture_base": "",
        "logo": "https://raw.githubusercontent.com/bcgov/aries-oca-bundles/main/OCABundles/schema/bcgov-digital-trust/member-card/lsbc-logo.jpg",
        "background_image_slice": "",
        "background_image": "https://raw.githubusercontent.com/bcgov/aries-oca-bundles/main/OCABundles/schema/bcgov-digital-trust/member-card/lsbc-background-image.jpg",
        "primary_background_color": "#00698c",
        "secondary_background_color": "#1a2930",
        "primary_attribute": "",
        "secondary_attribute": "",
        "type": "aries/overlays/branding/1.0"
        "digest": "############################################",
    }
]

And have the "###" replaced with the generated SAID. It would be fine if the name of the field had to "said" or something known if that helps.

NTH have would be the ability to pass in an array of the JSON structures and have each one filled in.

Is that supported? Any guidance on how to do that would be appreciated.

@blelump
Copy link
Member

blelump commented Nov 10, 2023

Hey,

We might have such a tool in the next few months, but at this stage, we do not have such an option to calculate the digest. If you're keen to contribute, we can go through the codebase and explain what to use and how.

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